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: Daniel O'Connor
Subject: Re: [avr-chat] re-entrant functions
Date: Wed, 1 Feb 2006 17:53:48 +1030
User-agent: KMail/1.9.1

On Wednesday 01 February 2006 17:35, Stumpf Michael wrote:
> :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.
>
> It is compiler dependent.
>
> I remember the Keil C51 compiler to generate non-reentrant code,
> because lacal variables were stored in fixed memory locations
> rather than on the stack. To make a function reentrant a special keyword
> 'reentrant' had to be applied to it.

That would make that compiler a compiler for a language other than C :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgp4Ctuobr88f.pgp
Description: PGP signature


reply via email to

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