Large code size?
Sam Lantinga
slouken@devolution.com
Wed Mar 31 23:46:00 GMT 1999
> > That's a whopping 4.5MB decrease in size just by using -fno-exceptions
> > It's still 25% larger than the equivalent VC++ code (which does have
> > exception handling enabled, BTW), but .5 MB of that is additional library
> > code that is a separate DLL on Windows, for a final count of only 17%
> > larger.
> What happens if you replace -O2 with -Os? (optimize for space ... which
> in many cases does a fairly decent job of optimizing for speed as well)?
> You should get smaller code.
The size decrease is on the order of 5-10%, which isn't worth if it we
lose any significant speed.
-Sam Lantinga (slouken@devolution.com)
Lead Programmer, Loki Entertainment Software
--
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/
--
More information about the Gcc
mailing list