[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-libc-dev] Re: bug #22163 (atomic not working asexpectedinC++)
From: |
Weddington, Eric |
Subject: |
RE: [avr-libc-dev] Re: bug #22163 (atomic not working asexpectedinC++) |
Date: |
Wed, 9 Jun 2010 13:58:28 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Wednesday, June 09, 2010 1:50 PM
> To: address@hidden
> Subject: Re: [avr-libc-dev] Re: bug #22163 (atomic not
> working asexpectedinC++)
>
> 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.
>
Ah, I see your point now. Agreed.
- [avr-libc-dev] bug #22163 (atomic not working as expected in C++), Joerg Wunsch, 2010/06/09
- [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++), Dean Camera, 2010/06/09
- [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++), David Brown, 2010/06/09
- [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++), Dean Camera, 2010/06/09
- [avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++), Joerg Wunsch, 2010/06/09
- RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++), Stu Bell, 2010/06/09
- Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++), Joerg Wunsch, 2010/06/09
- RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++), Weddington, Eric, 2010/06/09
- Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++), Joerg Wunsch, 2010/06/09
- RE: [avr-libc-dev] Re: bug #22163 (atomic not working asexpectedinC++),
Weddington, Eric <=
- RE: [avr-libc-dev] Re: bug #22163 (atomic not working as expectedinC++), Stu Bell, 2010/06/09
- Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++), David Brown, 2010/06/09
- Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++), Joerg Wunsch, 2010/06/09
- Re: [avr-libc-dev] Re: bug #22163 (atomic not working as expected inC++), David Brown, 2010/06/10
[avr-libc-dev] Re: bug #22163 (atomic not working as expected in C++), Joerg Wunsch, 2010/06/09