On Thu, 14 Sep 2000, Gordon McNutt wrote:
> I'm trying to solve what I think is a struct alignment problem that
> appears using the skiff cross-compiler (but not egcs compiling natively
> on an i386). It appears to be gcc 2.95.2, but my 'man gcc' must really
> be out-of-date because any of the options which look promising are not
> supported any more. Does anyone know or know where to find info on
> alignment pragmas or options with this compiler?
See 'info gcc' instead.
However you should be aware that ARM processors can't access a short
that is not aligned on an address which is a multiple of 2, and a multiple
of 4 for int, long, etc. Structure packing/alignment is something you
should do with extreme care. Unaligned types must be accessed as bytes
and repacked into their original type by hand.
Nicolas
Received on Thu Sep 14 17:20:48 2000
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:42 EDT