This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Arm structure alignment


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]