[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
functions statically linked on x86_64 while i386 uses glibc functions
From: |
Andi Kleen |
Subject: |
functions statically linked on x86_64 while i386 uses glibc functions |
Date: |
Mon, 29 Jan 2007 07:40:22 +0100 |
User-agent: |
KMail/1.9.5 |
Hello,
I was doing some binary size comparisons between -m32 and -m64 builds on x86_64
Linux (SUSE 10.2 with gcc 4.1.2). This is the same build environment, same
glibc, etc.
just one configured for i386-linux and built with -m32 and the other for
x86_64-linux
One thing I noticed is that a few executable sizes differ widely:
(.text sizes) 64bit 32bit
./src/csplit 95481 27704
./src/nl 87879 19551
./src/ptx 98316 28623
./src/expr 88373 20731
./src/tac 83726 15935
The other differences are in the expected range of a few percent.
On some investigation it looks like 64bit contains the regexpr functions and
some
other library functions, while the 32bit versions use the one from glibc.
I assume that must be a (harmless) bug since the glibc version (2.5) is
identical
between 32bit and 64bit.
A diff of the two config.logs is available at
http://one.firstfloor.org/~andi/coreutils-conf-diff
-Andi
- functions statically linked on x86_64 while i386 uses glibc functions,
Andi Kleen <=