how to disable structure alignment using gcc compiler options ?
Hi All, How can I disable structure alignment feature of gcc using command-line options ? I recently migrated to 64-bit OS, and doubt that I might be experiencing a structure alignment problem due to the new 64-bit architecture. I checked the sizes of the same C-style struct in both x86 and x86_64, and found out that they appear to be different by 20 bytes. I am not sure if this is due to structure alignment or the differences in data type lengths between two platforms. Hence, I will first disable the structure alignment feature, and then check the struct sizes again. Thanks.