avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os


From: Thomas D. Dean
Subject: Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os
Date: Thu, 15 May 2008 09:24:16 -0700 (PDT)

> The result of the atan2 does not impact the bit value written to PORTA, 
> so the compiler is free to re-order it.  That's what optimizers do.

If I change atan2() to sin() the compiler keeps the correct sequence.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]