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: Derric Tubbs
Subject: Re: [avr-chat] re-entrant functions
Date: Tue, 31 Jan 2006 16:41:16 -0800 (PST)

It sounded more to me like he meant recursive functions, but I could have been mistaken.
 
Tubbs

----- Original Message ----
From: Russell Shaw <address@hidden>
Cc: address@hidden
Sent: Tuesday, January 31, 2006 4:53:29 PM
Subject: Re: [avr-chat] re-entrant functions

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.


_______________________________________________
AVR-chat mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-chat

reply via email to

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