This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to pack structures on word boundary
- 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:04:33 -0400
- Subject: How to pack structures on word boundary
Hi:
I used -fpack-struct with gcc compiler and it packs my c structures on a byte boundary.
Is there a way to instruct gcc compiler to pack c structures on a word boundary?
I was compiling my code using diab compiler which packs structures on a word boundary.
Since, I moved to gcc compiler, it is packing structures differently.
Thanks
Mohammd Altaf Hossain
Motorola, Inc.