From: Keir Fraser Subject: Re: RFC: 32 bits as smallest atomic size. Date: Sat, 26 Mar 2005 17:49:22 +0000 Message-ID: <21eeeb49a66395420f0c47c7d5327630@cl.cam.ac.uk> References: <16964.33214.921809.324278@kitch0.watson.ibm.com> <74f362598b4e1a0d46aacb1a514706ac@cl.cam.ac.uk> <16964.41853.43756.836319@kitch0.watson.ibm.com> <16965.40068.388024.929154@kitch0.watson.ibm.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <16965.40068.388024.929154@kitch0.watson.ibm.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jimi Xenidis Cc: xen-devel@lists.sourceforge.net, "Ronald G. Minnich" List-Id: xen-devel@lists.xenproject.org On 26 Mar 2005, at 17:31, Jimi Xenidis wrote: >>>>>> "RGM" == Ronald G Minnich 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. > -JX 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. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click