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

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

Re: [avr-gcc-list] Strange Code generated when using Global Register Var


From: Georg-Johann Lay
Subject: Re: [avr-gcc-list] Strange Code generated when using Global Register Variables
Date: Sat, 30 Apr 2011 11:44:35 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Christian Steer schrieb:
Hello list,

// just to avoid optimizig:
static  volatile  uint8_t tmp;

You explicit inhibit optimization and expect to get good results?

As your application is actually very small, I would propose to write it completely in assembly.

valatile register is not supposed to work reliably.

Note that reserving r24 for global usage will make it impossible to use any function that takes a parameter or call any function that returns a value. gcc won't change the ABI for you.



reply via email to

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