Arm structure alignment
The Chazman
chaz@devastator.extern.ucsd.edu
Fri Sep 1 17:19:00 GMT 2000
> I'm porting a legacy app and need binary compatibility with the structures
> written to disk.
> Can I force GCC to pack *all* structures from the command line? to avoid going
> through all the sources and adding __attribute__((packed)) to all the structure
> definitions.
Buried at the very bottom of the ARM Submodel Options info page for current
versions of GCC you'll find the command-line option you're looking for.
It's -mstructure-size-boundary=8
-------------------------------------------
Carl Miller Firmware Engineer
chaz@gordian.com Gordian, Inc.
(714) 850-0205 http://www.gordian.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list