GCC 3.3 release criteria
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Feb 25 12:58:00 GMT 2003
dewar@gnat.com (Robert Dewar) writes:
| > I think that somtimes 'high level' people don't quite understand the
| > issues involved when you have timing constraints on sections of code.
|
| Actually timing constraints is a weak argument. What about a case in which the
| compiler sees the "INLINE" but determines that it is more efficient (time wise)
| NOT to inline.
I believe that the argument of the poster was that the compiler is always
programmed according the implementor's logic which does not always
match the programmer's.
Not just because the compiler *may* in _certain cases_ know better
than the programmers means that the compiler should always have the
final word. Making things so just create gaps and misunderstandings
bewteen "programmers in the trenches" and implementors.
Ideally, there should be switches that enables the compiler to report
cases where it thinks it knows better than the programmer (no, the
current behaviour of -Winline does not cover that case).
-- Gaby
More information about the Gcc
mailing list