Optimization of conditional access to globals: thread-unsafe?

Robert Dewar dewar@adacore.com
Tue Oct 30 01:40:00 GMT 2007


Robert Dewar wrote:

> Yes, of course! unrolling loops is often an overall loss

Note also that excessive inlining often is a loss due to
increase in icache pressure. In Ada it is the style to
carefully mark inlinable routines with pragma Inline, and
we often find in Ada that use of -O3, which activates
automatic inlining, going beyond what the programmer has
asked for, is often an overall loss.





More information about the Gcc mailing list