avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] "#pragma reentrant" no effect in avr-GCC ?


From: David Kelly
Subject: Re: [avr-chat] "#pragma reentrant" no effect in avr-GCC ?
Date: Thu, 2 Oct 2008 06:34:52 -0500


On Oct 2, 2008, at 1:52 AM, Tobias Drößler wrote:

Hey,

my question is in the subject-line ...

i try to understand  some  c-sources ...

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?

I haven't seen any need for it in avr-gcc, but Metrowerks C for the HC12 requires a similar modification to a function definition if it is to be reentrant. Metrowerks rewrites and reorders one's code much more aggressively than I've seen of avr-gcc.

Would not be surprised if there are gcc targets which require this pragma.

--
David Kelly N4HHE, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.







reply via email to

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