[ECOS] Yet another ARM alignment question

Wilson Kwan wilson@kinesphere.com
Tue Apr 24 20:53:00 GMT 2001


I've read through the eCos list regarding ARM alignment problems and am
wondering if anyone out there can lend a few suggestions. I am faced with a
general porting problem of some legacy Intel code. Of course all the
structures were packed on byte boundaries and with some having structures
within structures.

My question is has anyone solved the word and dword alignment problems on
ARM? Is is any combination of gcc compiler options that will overcome this
limitation albeit at a performance cost. What about an alignment trap
handler? Anyone have any sample code on how to write one of these or a
pointer to some good documentation?

Thanks again in advance,

Wilson



More information about the Ecos-discuss mailing list