>>> On Thu, Jan 3, 2008 at  7:45 AM, in message
<[EMAIL PROTECTED]>, Binyamin Dissen
<[EMAIL PROTECTED]> wrote: 
-snip- 
> The compiler generated
> 
>    x = foo2(bar);
> 
> directly. I could not figure out how foo2 was called directly.
> 
> Most impressive of the compiler.

Yes, there has been a lot of work done over the years on things like that.  
Sometimes the optimizations cause real problems.  You can control some of that 
by specifying -On where n is 0, 1, 2 or 3.  Supposedly, -O0 will turn off most 
(but apparently not all) of the optimizations.  The gcc man page will tell you 
what each level will do for you.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to