This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] RFC: 32 bits as smallest atomic size.

On 26 Mar 2005, at 17:31, Jimi Xenidis wrote:

"RGM" == Ronald G Minnich <rminnich@xxxxxxxx> writes:

 RGM> On Fri, 25 Mar 2005, Jimi Xenidis wrote:

Few things to note:
1) packed is necessary since the ABI will do the right thing
 RGM>                  un-necessary?
oops, yes un-necessary.

I prefer to pack things explicitly rather than rely on ABI padding. My aim is to be able to document the interfaces separately from the C source, and that will include knowing the offset of each field, and that's easiest if the compiler isn't automatically helping by paddin things unexpectedly. If PACKED is too painful on a particular arch you can always stub it out -- it's only a macro after all.

 -- 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.
Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>