xen-devel
Re: [Xen-devel] RFC: 32 bits as smallest atomic size.
On 26 Mar 2005, at 14:13, Jimi Xenidis wrote:
KF> We always naturally align fields, even in packed structs. The
compiler
KF> doesn't do it for us, but we check it manually.
hmm, is it padding you are trying to avoid?
Perhaps not using packed and adding the gcc option '-Wpadded' which
will automagically catch the offenders for you might be more
appropriate?
Depending on manually checking can result in performance and
correctness issues that are difficult to track.
Mostly it's used for structs that are part of the public Xen interface.
I don't want different compilers packing fields in different ways.
-- Keir
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] RFC: 32 bits as smallest atomic size., Jimi Xenidis
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Ronald G. Minnich
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Jimi Xenidis
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Jimi Xenidis
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size.,
Keir Fraser <=
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Kurt Garloff
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Ronald G. Minnich
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Ronald G. Minnich
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Jimi Xenidis
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Jimi Xenidis
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Ronald G. Minnich
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
- Re: [Xen-devel] RFC: 32 bits as smallest atomic size., Keir Fraser
|
|
|