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

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

Re: AW: [avr-gcc-list] avr-gcc bug: global register variable is broken


From: Dmitry K.
Subject: Re: AW: [avr-gcc-list] avr-gcc bug: global register variable is broken
Date: Thu, 2 Dec 2004 09:26:39 +1000
User-agent: KMail/1.5

At 2 Dec 2004 Klaus Rudolph wrote:
...
> I tested with this simple example:
> ------------------
> register unsigned char myGlobalVar asm("r9");
>
> volatile long y;
>
> void f1(long a, long b, long c, long d, long e, long f, int g, char h) {
>     y=a+b+c+d+e+f+g;
> }
>
>
> void callIt() {
>     f1( y,y,y,y,y,y,y,y);
> }
>
> int main() {
>     callIt();
>     return 0;
> }
> -----------------

I have translated this example with an option '-ffixed-r9' (3.3.4). In the 
received code I have not found mistakes, the reserved register is not used. 
Reduce, please, an example and specify a mistake more precisely.

Regards.



reply via email to

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