Can I force a Sun 4 *NOT* to align elements on 16 bit boundaries?
Tony Nardo
trn at aplcomm.jhuapl.edu
Sun Dec 4 04:39:52 AEST 1988
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 at aplcomm.jhuapl.edu (when our link revives)
UUCP: {backbone!}mimsy!aplcomm!trn (stopgap measure)
More information about the Comp.sys.sun
mailing list