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 JAA05005; Fri, 9 Nov 2001 09:38:26 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA05098 for caml-list@pauillac.inria.fr; Fri, 9 Nov 2001 09:38:25 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA25124 for ; Thu, 8 Nov 2001 19:35:18 +0100 (MET) Received: from tcsnpop1.tcsn.uswest.net (tcsnpop1.tcsn.uswest.net [207.108.112.1]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id fA8IZGX03937 for ; Thu, 8 Nov 2001 19:35:17 +0100 (MET) Received: (qmail 25392 invoked by uid 50); 8 Nov 2001 18:35:15 -0000 Delivered-To: fixup-caml-list@inria.fr@fixme Received: (qmail 25380 invoked by uid 0); 8 Nov 2001 18:35:14 -0000 Received: from 216-161-146-234.customers.uswest.net (HELO dylan) (216.161.146.234) by tcsnpop1.tcsn.uswest.net with SMTP; 8 Nov 2001 18:35:14 -0000 Message-ID: <00bc01c16884$241df780$210148bf@dylan> From: "David McClain" To: 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> Subject: Re: [Caml-list] Re: complex bigarrays Date: Thu, 8 Nov 2001 11:35:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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 C compiler in its right mind would dare reorder the elements of an array or struct.... padding is another issue. C is a high-level Assembly language, and as such it produces what you write for the most part. I used to write C compilers for a living, and I became intimately familiar with the old specs... I used to be able to write C and see in my mind as I went along, exactly which registers were being banged on (back in the days of the MC680x0). If this implicit contract were broken by some vendor an enormous amount of legacy code would also break. They wouldn't dare!!! - DM ------------------- 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