From: "David McClain" <barabh@qwest.net>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] Re: complex bigarrays
Date: Thu, 8 Nov 2001 11:35:28 -0700 [thread overview]
Message-ID: <00bc01c16884$241df780$210148bf@dylan> (raw)
In-Reply-To: <15338.51001.121416.677202@heplix4.ikp.physik.tu-darmstadt.de>
> 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
next prev parent reply other threads:[~2001-11-09 8:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-06 9:05 [Caml-list] Re: OCaml speed Rolf Wester
2001-11-06 10:44 ` Markus Mottl
2001-11-08 9:28 ` [Caml-list] Re: complex bigarrays Xavier Leroy
2001-11-08 14:59 ` Rolf Wester
2001-11-08 15:35 ` Thorsten Ohl
[not found] ` <81DA66D2-D46E-11D5-82F9-003065BDAA76@mac.com>
2001-11-08 17:56 ` Thorsten Ohl
2001-11-08 18:12 ` Joerg Czeranski
2001-11-08 18:20 ` Ken Rose
2001-11-08 18:35 ` David McClain [this message]
2001-11-08 23:13 David Gurr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00bc01c16884$241df780$210148bf@dylan' \
--to=barabh@qwest.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox