[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?
From: |
Ruud Vlaming |
Subject: |
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ? |
Date: |
Thu, 19 Feb 2009 19:21:07 +0100 |
User-agent: |
KMail/1.9.1 |
On Thursday 19 February 2009 19:01, Vincent Trouilliez wrote:
> I made a few trials. It appears that up to and including 3 nop
> statements, GCC leaves them alone. But if I put 4 of them, it removes
> them all !
Are you absolutely sure they are really left out? I assume they are
just not shown in the assembly file. Four or more nops are replaced
by ellipses, but are present allright. Have a close look at the addresses.
Otherwise you could use
__asm__ volatile(
"nop \n\t"
"nop \n\t"
"nop \n\t"
"nop \n\t");
in which gcc cannot start to optimize.
Ruud
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?, (continued)
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?, David Kelly, 2009/02/19
- RE: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, Weddington, Eric, 2009/02/19
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, David Kelly, 2009/02/19
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, Jim Brain, 2009/02/19
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, David Kelly, 2009/02/19
- [avr-gcc-list] Preferred ICE (was: How to force GCC to not to remove "nop" statements?), Graham Davies, 2009/02/19
- Re: [avr-gcc-list] Preferred ICE (was: How to force GCC to not to remove "nop" statements?), David Kelly, 2009/02/20
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, Joerg Wunsch, 2009/02/20
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, David Kelly, 2009/02/20
- Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements?, Royce Pereira, 2009/02/20
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?,
Ruud Vlaming <=
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?, Parthasaradhi Nayani, 2009/02/19