Re: Structure size directives
- From: Tor Rustad <tor_rustad@xxxxxxxxxxx>
- Date: Mon, 03 Dec 2007 23:24:54 +0100
[Better choice for subject, would be "struct padding ..."]
jacob navia wrote:
Since standard C doesn't provide any way for the programmer to direct the compiler as to how to layout structures, most compilers provide some way to do this, albeit in different forms.
Most C compilers? Out of how many?
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.
FYI, C++:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1262.pdf
--
Tor <bwzcab@xxxxxxxxx | tr i-za-h a-z>
.
- Follow-Ups:
- Re: Structure size directives
- From: those who know me have no need of my name
- Re: Structure size directives
- From: Richard Tobin
- Re: Structure size directives
- References:
- Structure size directives
- From: jacob navia
- Structure size directives
- Prev by Date: Re: Structure size directives
- Next by Date: Re: Multi precision floating point
- Previous by thread: Re: Structure size directives
- Next by thread: Re: Structure size directives
- Index(es):
Relevant Pages
|