avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] re-entrant functions


From: Russell Shaw
Subject: Re: [avr-chat] re-entrant functions
Date: Wed, 01 Feb 2006 10:53:29 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050914 Debian/1.7.11-1

developer2112 (sent by Nabble.com) wrote:
Are re-entrant functions supported in winavr? If so, how does one go about writing one? Is there some reentrant keyword that will cause the compiler to use the stack for passing parameters instead of fixed registers?

Just because registers are used for parameter passing, doesn't make a
function any less re-entrant. To be re-entrant, just don't store persistant
state in the function such as with static variables.




reply via email to

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