avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] setjmp() - not ordinary function?


From: Dmitry K.
Subject: [avr-libc-dev] setjmp() - not ordinary function?
Date: Tue, 17 Jun 2003 09:51:27 +1100
User-agent: KMail/1.5

Good morning!

   I want to pay attention to possible discrepancy.
Avr-gcc shows awareness on purpose setjmp(). A prologue/epilogue of function, 
in which there is a call setjmp(), contains preservation/restoration of all 
call-saved registers. Exception make function main() and global register 
variables.

   Nevertheless, setjmp/longjmp too keeps/restores the same registers.
Restoration of local variables after operation longjmp(), certainly is 
pleasant, but it is no necessary. But loss of changes in global registers,
in my opinion, is inadmissible.

avr-gcc (GCC) 3.3.1 20030519 (prerelease)
avr-libc-20030422cvs





reply via email to

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