Questions on inlining of code
Jeffrey A Law
law@hurl.cygnus.com
Wed Mar 31 23:46:00 GMT 1999
In message < 199903181530.KAA01307@indy3.indy.net >you write:
> Two question on inlining of code in egcs/pgcc:
>
> 1. Is it possible to disable automatic inlining (compiler switches -O3 or
> -finline) while still respecting the inline declaration in the source code?
> I'd like to compile with max optimization (-O6) while avoiding the bloat
> that comes with aggressive inlining of code. At the same time, though, I
> don't want to disabled the inlining of code explicitly declared as such.
The only difference between -O2 and -On for n > 2 is automatic function
inlining. So, just use -O2.
> 2. Does aggressive inlining of code make any sense on a Pentium+ CPU?
Maybe. Depends on the precise situation.
jeff
More information about the Gcc
mailing list