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 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.


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