Mail Archives: pgcc/1999/03/18/10:32:44
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.
2. Does aggressive inlining of code make any sense on a Pentium+ CPU?
It obviously helps on a 386/486 by avoiding the call/return instructions.
I wonder, though, if the inlining of code doesn't just thrash the L2 cache
on more recent processors. Given the prevalence these days of 512kb L2
caches, maybe inlining should not be automatically enabled by higher levels
of optimization?
Thank you.
*** Steve Snyder ***
- Raw text -