This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Default alignment?
- To: gnu-win32 at cygnus dot com
- Subject: Default alignment?
- From: Tim Iverson <iverson at cisco dot com>
- Date: Thu, 7 Aug 1997 22:05:18 -0700 (PDT)
I need to change the default alignment for all structures and unions from 4
bytes to 2 bytes. Is there a handy -falign=2 option? I didn't see one in
the info files, but that doesn't mean it isn't there.
I also tried #pragma pack(2) -- it would be fairly easy to just put that
into the top level headers. However it doesn't seem to work here, even
though MSC supports it and gcc does too on Unixen that have it.
It is simply too large a task to go and mark every structure and union with
__attribute__ ((aligned (2), packed)). Naturally, I'd prefer not to
rebuild GCC just to add a new -f option. Anyone got some good news for me
on this? ;-)
Thanks,
- Tim Iverson
iverson@cisco.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".