I installed egcs from the port. eg++ produces larger binaries than g++. From this trivial example, I would expect these files to be very similar in size.
obj_size exe_size strip_exe_size -------- -------- -------------- g++ 972 7150 5464 eg++ 1188 299547 76792 eg++ seems to produce faster executables. tomdean == the code ========================================== #! /bin/sh doit() { echo "# $1" $1 } == the output ========================================== # g++ --version 2.7.2.1 # g++ -m486 -O2 -c hello.cc # ls -l hello.o -rw-r--r-- 1 tomdean users 972 Mar 1 09:33 hello.o # g++ -m486 -O2 hello.cc -o hello # ls -l hello -rwxr-xr-x 1 tomdean users 7150 Mar 1 09:33 hello # file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), \ dynamically linked, not stripped # strip hello # ls -l hello -rwxr-xr-x 1 tomdean users 5464 Mar 1 10:02 hello # file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), \ dynamically linked, stripped # time hello Hello, world. 0.07 real 0.05 user 0.02 sys # eg++ --version egcs-2.91.60 # eg++ -m486 -O2 -c hello.cc # ls -l hello.o -rw-r--r-- 1 tomdean users 1188 Mar 1 09:33 hello.o # eg++ -m486 -O2 hello.cc -o hello # ls -l hello -rwxr-xr-x 1 tomdean users 299547 Mar 1 09:33 hello # file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), \ dynamically linked, not stripped # strip hello # ls -l hello -rwxr-xr-x 1 tomdean users 76792 Mar 1 10:02 hello # file hello hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), \ dynamically linked, stripped # time hello Hello, world. 0.02 real 0.00 user 0.02 sys To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message