This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to pack structures on word boundaries


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.


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