From: sjw <simon.j.wright@mac.com>
Subject: Re: bit numbers in packed arrays of Boolean
Date: Tue, 31 Aug 2010 06:57:03 -0700 (PDT)
Date: 2010-08-31T06:57:03-07:00 [thread overview]
Message-ID: <b90e6732-5707-481e-aafc-127e908f6fc7@v41g2000yqv.googlegroups.com> (raw)
In-Reply-To: op.via1l2k9ule2fv@garhos
On Aug 31, 2:40 pm, Yannick Duchêne (Hibou57)
<yannick_duch...@yahoo.fr> wrote:
> A tricky and imaginary example by the way: imagine a clever compiler with
> clever optimization, which would detect the application mostly access the
> nth item of the array and far less oftenly access any other items, now let
> say the target CPU has a special instruction to access bit value at #0
> (common practice on CISC processor), then it could choose to map this nth
> item on bit #0.
>
> Do you feel the language would disallow such an optimization ? if it does
> not, this example shows this is implementation defined.
I think this would be a very bad idea. My first reaction involved
"deserving a good kicking", perhaps that's a little extreme.
next prev parent reply other threads:[~2010-08-31 13:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 11:14 bit numbers in packed arrays of Boolean Stephen Leake
2010-08-31 11:34 ` Yannick Duchêne (Hibou57)
2010-08-31 12:34 ` Niklas Holsti
2010-08-31 12:41 ` Yannick Duchêne (Hibou57)
2010-08-31 13:08 ` Dmitry A. Kazakov
2010-08-31 13:40 ` Yannick Duchêne (Hibou57)
2010-08-31 13:57 ` sjw [this message]
2010-08-31 14:07 ` Dmitry A. Kazakov
2010-08-31 14:30 ` Niklas Holsti
2010-09-02 20:09 ` Randy Brukardt
2010-08-31 18:13 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox