[linux-elitists] Nobody's favorite language? C++ and free software

Aaron Lehmann aaronl@vitelus.com
Wed Mar 26 01:02:10 PST 2003

On Wed, Mar 26, 2003 at 12:35:01AM -0800, Alan DuBoff wrote:
> I just did a bunch of testing on a small communications app that uses 
> sockets. Compiled optimized and static the resulting sizes are very close, 
> with icc actually beating out by a few bytes.
> $ icc -O3 -static -c ./hget.c -o ./hget
> $ ls -l hget
> -rw-r--r--    1 aland    aland        3422 Mar 26 00:22 hget
> $ gcc-3.0 -O3 --static -c ./hget.c -o ./hget
> $ ls -l hget
> -rw-r--r--    1 aland    aland        3468 Mar 26 00:23 hget

Do you really expect us to take gcc-3.0 figures seriously? That
(awful) version of the compiler has been superceded several times.

If you are comparing sizes, you should use gcc's -Os option, which
optimizes for size.

More information about the linux-elitists mailing list