This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to pack structures on word boundaries
- From: Hossain Altaf-EMH028 <Altaf dot Hossain at motorola dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 11 Sep 2002 16:01:09 -0400
- Subject: 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.