[En-Nut-Discussion] Fwd: Not fixed!!!: Re: confirmed!!! Re: NutOS 4.4.0 on ARM7: possibly bug in NutEnterCritical / NutExitCritical
duane ellis
ethernut at duaneellis.com
Sat Feb 23 02:37:50 CET 2008
> For option (B), I believe that a variable allocated by the compiler
> using "register" type as has been suggested can solve all problems
> because the compiler will optimize it or not, but will allways do it
> right!!!
Wrong, "register" does nothing for this.
To quote GCC: http://www.faqs.org/docs/learnc/x792.html
>> The resulting program will contain a request, on creation of the
variable that it be
>> placed in a cpu register, the operating system may ignore or honour
this request.
-Duane.
More information about the En-Nut-Discussion
mailing list