How to pack structures on word boundaries

Hossain Altaf-EMH028 Altaf.Hossain@motorola.com
Wed Sep 11 13:02:00 GMT 2002


Hi :
   I am using the gcc compiler. If I use -fpack-struct option to
compile my c program, it packs the structure on a byte boundary.

How can I force gcc to pack on word boundary?

Is there another option or command for packing on word boundary?

Thanks
Mohammed Altaf Hossain
Motorola, Inc.



More information about the Gcc-help mailing list