executable file size

Mike Stump mrs@wrs.com
Fri Sep 19 12:08:00 GMT 1997


> Date: Fri, 19 Sep 1997 10:22:15 +0200
> From: Jan Hubicka <hubicka@horac.ta.jcu.cz>
> To: egcs@cygnus.com

> it works very well and brought 1% speedup for XaoS wich is great!

> At the other hand file size increased from 320kb(from previous egcs) to 460

> But maybe you should take resulting file size into account too. I
> think that 1% of speed don't worth 1/3 of size.

We need a -Ospacen flag, where n is a number, were higher numbers mean
make is smaller, and -Ospace99 means make it run slowly if you have
to, but make it fit.  With such a flag, the compiler can serve those
that have memory to burn, but want every last ounce of performance can
get it, as well as people that pay $1 for every 1000 bytes.

We should add the flag, even if it doesn't do anything, as when people
add new code that ask themselves, should I make it go fast, or should
I make it small, can then conditionalize on the flag, but without the
flag, people will just choose whatever they want, and will not add the
flag themselves.

What do others think?



More information about the Gcc mailing list