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: John Regehr
Subject: RE: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os
Date: Fri, 16 May 2008 12:55:24 -0600 (MDT)

The PORTA bits are used for hardware control.  I want to use the
atan2(), etc. calls as pulse stretching.

Then I recommend using the calls in <util/delay.h> to get exact delays
instead of monkeying around with floating point routine calls.  They'll
be a lot more exact as well as being a boatlad smaller!

Perhaps the atan2() call are accomplishing useful work...

John




reply via email to

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