ARM Xscale stack alignment

Tom St Denis tstdenis@ellipticsemi.com
Fri May 18 14:12:00 GMT 2007


Hello,

I've searched the gcc-help list and can't find an answer to my question
so here I go.

I need to get GCC to align all auto variables on an 8 byte boundary. 
Which internally seems to be happening, but the stack frame is never
8-byte aligned (it is 4-byte aligned).  The problem is that on the
xscale [e.g. PXA255] 64-bit loads are done in one memory reference which
means that ifyou try to load a 64-bit variable that isn't 8-byte aligned
you get a memory trap.

Is there a GCC switch or a patch I could use to ensure the stack frames
are aligned properly?

Thanks,
Tom



More information about the Gcc-help mailing list