jayasooriah schrieb: > Oppps... I should have seen the binary code -- you *are* generating > 32-bit code. > > In this case, I think the compiler decided not to use literal pools > for some reason. May be there is no place nearby to place the pool > constants. > > So I really have no idea what it is trying to optimise, if this is > what it is doing! An ldr rn,[pc,#n] (which is the real opcode behind ldr rn,=<const>) might have some pipeline stalls longer than the 3 mov instructions. Would be interessting to see if the compiler make differences if optimized for size and not for speed ? -- 42Bastian
Message
Re: [lpc2000] Re: Strange GCC compiler assembler output
2006-05-05 by 42Bastian Schick