This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.3 release criteria


dewar at gnat dot 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]