From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Lantinga To: egcs@egcs.cygnus.com Cc: hercules@lokigames.com, slouken@devolution.com Subject: Large code size? Date: Wed, 24 Mar 1999 09:38:00 -0000 Message-id: X-SW-Source: 1999-03/msg00768.html I'm comparing code size of an application compiled with VC++ and with egcs, 1.1.1 and the VC++ binary is smaller than the egcs binary by an almost exact factor of two. The code being compared is self-contained, i.e. it calls no library routines internally, and is pretty hairy C++ template code. The egcs version (compiled with egcs 1.1.1, -O2 -funroll-loops): -rwxrwxr-x 1 hercules devel 1534443 Mar 25 1999 robotcom.so The VC++ version (compiled with VC++ 5.0, /G5 /Ox /Ot /Og /Oi /Op /Ob2) -r-xr-xr-x 1 hercules devel 654336 Mar 14 10:26 robotcom.dll Any ideas why this might be? The same ratio is true for the main application, which is 13 MB on Linux, and 6 MB on Windows. 7 MB of difference makes a significant impact on performance, and our application compares poorly to the Windows version. We'd like it to compare favorably. :) Your thoughts, O Gurus? :) -Sam Lantinga (slouken@devolution.com) Lead Programmer, Loki Entertainment Software -- Author of Simple DirectMedia Layer - http://www.devolution.com/~slouken/SDL/ -- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Lantinga To: egcs@egcs.cygnus.com Cc: hercules@lokigames.com, slouken@devolution.com Subject: Large code size? Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: X-SW-Source: 1999-03n/msg00773.html Message-ID: <19990331234600.47ddJicTxH33usNMtO6CfYtRz1Ex8B4_Ft8ir2e7TiE@z> I'm comparing code size of an application compiled with VC++ and with egcs, 1.1.1 and the VC++ binary is smaller than the egcs binary by an almost exact factor of two. The code being compared is self-contained, i.e. it calls no library routines internally, and is pretty hairy C++ template code. The egcs version (compiled with egcs 1.1.1, -O2 -funroll-loops): -rwxrwxr-x 1 hercules devel 1534443 Mar 25 1999 robotcom.so The VC++ version (compiled with VC++ 5.0, /G5 /Ox /Ot /Og /Oi /Op /Ob2) -r-xr-xr-x 1 hercules devel 654336 Mar 14 10:26 robotcom.dll Any ideas why this might be? The same ratio is true for the main application, which is 13 MB on Linux, and 6 MB on Windows. 7 MB of difference makes a significant impact on performance, and our application compares poorly to the Windows version. We'd like it to compare favorably. :) Your thoughts, O Gurus? :) -Sam Lantinga (slouken@devolution.com) Lead Programmer, Loki Entertainment Software -- Author of Simple DirectMedia Layer - http://www.devolution.com/~slouken/SDL/ --