This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++: size of binaries
- From: Per Abrahamsen <abraham at dina dot kvl dot dk>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 07 Feb 2003 17:05:11 +0100
- Subject: C++: size of binaries
- Cancel-lock: sha1:0v3nDazKzvngfUPKCO0hvIQ/vhw=
- Organization: The Church of Emacs
Hi!
I compiled my program with GCC 2.9.4 and GCC 3.2.1, and just want to
teel how impressed I am with the reduction of the size of the
binaries, both debug information but also code size.
No significant changes in performance, the gcc-3.2 compiled executable
is test 1-2% faster.
No questions, I just thought you could do with some positive feedback.
Regards,
Per Abrahamsen
Details:
% ll daisy*
111984 daisy-2.9.4
37576 daisy-3.2
% size daisy*
text data bss dec hex filename
4537735 1682152 5176 6225063 5efca7 daisy-2.9.4
2498272 431656 3004 2932932 2cc0c4 daisy-3.2
% gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
% gcc-3.2 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20020924 (Debian prerelease)
% uname -a
Linux ssv2 2.4.18 #1 Fri Mar 22 15:33:15 CET 2002 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux
% ldd daisy*
daisy:
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4001d000)
libc.so.6 => /lib/libc.so.6 (0x40066000)
libm.so.6 => /lib/libm.so.6 (0x40181000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
daisy-3.2:
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4001d000)
libc.so.6 => /lib/libc.so.6 (0x400c6000)
libm.so.6 => /lib/libm.so.6 (0x401e1000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40202000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Compiled with:
gcc -g -O2 -ffast-math -mcpu=pentiumpro -march=pentium