single function optimization possible?

Doug Evans dje@transmeta.com
Sat Apr 1 00:00:00 GMT 2000


Scott A Sumner writes:
 > I know that I can optimize a whole file to different degrees using -O,
 > -O1, etc., but can I optimize only certain functions in a file, leaving
 > other functions alone?  If so, how?

Nope, there's no way to do this.
This is something I've wanted when debugging GCC
so I have a hacked up copy of GCC that uses (ghast!) #pragma.
Never submitted it for inclusion though. :-)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list