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
pgpDziwiD8dtN.pgp
Description: PGP signature
_______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
