Re: Structure size directives



in comp.lang.c i read:

Unaligned accesses to objects, should be banned. It has nothing to do
with portable C code, it might trigger a core dump on non-x86 CPU.

even on x86 systems with the right option enabled.

but i think jacob's point is that people want these "dense" struct's and
that there should be a way to get the compiler to emit the code necessary
to marshall the data. some systems would turn off or on some option while
the program is running, other systems would need the type of handling often
seen in c code for marshalling "plain" structs into and out of arrays of
unsigned char, etc...

--
a signature
.