From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA24404; Thu, 8 Nov 2001 19:22:33 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA24615 for ; Thu, 8 Nov 2001 19:22:31 +0100 (MET) Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fA8IMUv19345 for ; Thu, 8 Nov 2001 19:22:30 +0100 (MET) Received: from dialup-64.154.67.231.dial1.sandiego1.level3.net ([64.154.67.231] helo=earthlink.net) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 161tn1-0006A6-00; Thu, 08 Nov 2001 10:20:36 -0800 Message-ID: <3BEACCDB.BB1A206@earthlink.net> Date: Thu, 08 Nov 2001 10:20:11 -0800 From: Ken Rose Reply-To: rose@acm.org X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: ohl@hep.tu-darmstadt.de CC: caml-list@inria.fr, shiv@mac.com Subject: Re: [Caml-list] Re: complex bigarrays References: <15338.42584.498751.200158@heplix4.ikp.physik.tu-darmstadt.de> <81DA66D2-D46E-11D5-82F9-003065BDAA76@mac.com> <15338.51001.121416.677202@heplix4.ikp.physik.tu-darmstadt.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Thorsten Ohl wrote: > AFAIK, the C compiler is free to pad structures for better alignment, > resulting in better performance. Isn't it even free to reorder > elements? No, it's not free to reorder them. C89, section 6.5.2.1 semantics, paragraph 9 "Within a structure object, the non-bit-field members and the units in which bit-fields reside have addresses that increase in the order in which they are declared." They can be padded anywhere except at the beginning. - ken ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr