|
| From: | M. Warner Losh |
| Subject: | Re: [Qemu-devel] [patch] add byteordered types |
| Date: | Wed, 27 Aug 2008 08:12:18 -0600 (MDT) |
In message: <address@hidden>
Gerd Hoffmann <address@hidden> writes:
: Paul Brook wrote:
: > On Wednesday 27 August 2008, Gerd Hoffmann wrote:
: >> +typedef struct { uint16_t le; } le16;
: >
: > This won't do what you expect on some targets. In particular older ARM
targets
: > align all structs to a word (4-byte) boundary.
:
: Is this a default which can be changed by adding alignment atttributes?
: Or is it done unconditionally?
packed and alignment attributes.
Warner
| [Prev in Thread] | Current Thread | [Next in Thread] |