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

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

Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++)
Date: Wed, 9 Jun 2010 21:49:54 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Weddington, Eric wrote:

> As a side note, wouldn't declaring some_temp_variable as volatile
> solve the issue above?

I think it does, but it's another pessimization...  It forces the
function to get a stack frame even if it otherwise doesn't need it,
and adds memory access cycles.  The optimizer could perfectly keep the
variable in a register, it's just that the developer intended to move
the time-critical routine outside the interrupt block.

-- 
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]