Data structure alignment: Difference between revisions

Content deleted Content added
MKen (talk | contribs)
m Wording
Buccia (talk | contribs)
m Typical alignment of C structs on x86: added GNU to compilers supporting #pragma pack() .. http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html
Line 108:
#pragma pack(pop) /* restore original alignment from stack */
 
This structure would have a compiled size of '''6 bytes'''. The above directives are available in compilers from [[Microsoft]], [[Borland]], [[GNU]] and many others.
 
==References==