trn@aplcomm.jhuapl.edu (Tony Nardo) (12/04/88)
This issue may have been discussed before, but I'll ask anyway... Does anyone know how to force the C compiler to align long words in a structure on 16 bit boundaries? I see there's a -misalign switch to handle "misaligned" data, but I can't seem to force the structure elements to align on 16-bit boundaries. Every "long", "struct", and "union" is forced onto a 32-bit boundary. This is especially confusing for me, since "sizeof" is returning the proper structure size (as if the data were in 16-bit alignment). I can't change the structure. I am dealing with data stored on hundreds of tapes, and am trying to use the same #include file that our other systems are using. Any suggestions? ARPA, BITNET: trn@aplcomm.jhuapl.edu (when our link revives) UUCP: {backbone!}mimsy!aplcomm!trn (stopgap measure)