Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Strange GCC compiler assembler output

2006-05-05 by 42Bastian Schick

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.