[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] "#pragma reentrant" no effect in avr-GCC ?
From: |
Pertti Kellomäki |
Subject: |
Re: [avr-chat] "#pragma reentrant" no effect in avr-GCC ? |
Date: |
Thu, 02 Oct 2008 10:51:43 +0300 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
Tobias Drößler wrote:
i read that this line in "genearal" c (compiler depended) means that
the function(s) can be re-entered while it is already running.
but compiled with the avr-gcc -- there is no effect in the programcode,
or is that wrong?
Don't know about avr-gcc in particular, but if the compiler
produces re-entrant code anyway, then the pragma would likely not
have any effect. A function that only does some computation based
on its parameters would in all likelihood result in re-entrant code.
Wikipedia has a good explanation:
<http://en.wikipedia.org/wiki/Reentrant_(subroutine)>
--
Pertti