From: Ken Rose <kenarose@earthlink.net>
To: ohl@hep.tu-darmstadt.de
Cc: caml-list@inria.fr, shiv@mac.com
Subject: Re: [Caml-list] Re: complex bigarrays
Date: Thu, 08 Nov 2001 10:20:11 -0800 [thread overview]
Message-ID: <3BEACCDB.BB1A206@earthlink.net> (raw)
In-Reply-To: <15338.51001.121416.677202@heplix4.ikp.physik.tu-darmstadt.de>
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
next prev parent reply other threads:[~2001-11-08 18:22 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 [this message]
2001-11-08 18:35 ` David McClain
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=3BEACCDB.BB1A206@earthlink.net \
--to=kenarose@earthlink.net \
--cc=caml-list@inria.fr \
--cc=ohl@hep.tu-darmstadt.de \
--cc=rose@acm.org \
--cc=shiv@mac.com \
/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