|
From: | Alex Wenger |
Subject: | Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os |
Date: | Thu, 15 May 2008 20:36:21 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Hi, if i read:
The code fragment, ... dtostrf(cos_rad,6,3,&line4[14]); line3[20] = ' '; line4[20] = ' '; TRACE_ON(TRACE4); // portb |= _bv(04)atan_rad = atan2(cos_rad,sin_rad); TRACE_OFF(TRACE4); // portb &= ~_bv(04)dtostrf(atan_rad,6,3,&line4[26]);
"portb" it looks like you don´t use the original avr includes, otherwise it should be "PORTB". Maybe you don´t declare portb as volatile? Why someone does not use the standard include? Alex
[Prev in Thread] | Current Thread | [Next in Thread] |