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

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

Re: [avr-libc-dev] [bugs #4101] setjmp/longjmp destroy changes in global


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [bugs #4101] setjmp/longjmp destroy changes in global registers
Date: Mon, 7 Feb 2005 17:52:51 +0100
User-agent: Mutt/1.4.2.1i

As Joerg Wunsch wrote:

> This cannot work when linking against *any* pre-compiled object from
> the library, as these files always risk to use one of the registers
> the application might use as a fixed register variable.

Hmm, are you trying to tell me that we should perhaps establish an ABI
where some registers are completely set aside for use in global
register variables, so the compiler will never use them?  Sure, in
that case, library code would not conflict with application code, but
at the cost of possibly forcing the compiler to produce ineffective
code as it needs to use memory variables where it could use a
register.

But again, no additional problems for asm sources, they just had to
follow the very same ABI only.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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