From: Dave Poirier <instinc@users.sf.net>
Subject: Re: 64bit access to an array of 8bit values
Date: Mon, 04 Mar 2002 08:41:02 -0500
Date: 2002-03-04T08:41:02-05:00 [thread overview]
Message-ID: <3C83796E.9040703@users.sf.net> (raw)
In-Reply-To: thcc44iPG2ns@eisner.encompasserve.org
Larry Kilgallen wrote:
> In article <5ee5b646.0203040229.6ffc7ee3@posting.google.com>, dewar@gnat.com (Robert Dewar) writes:
>
> <large snip>
>
>>you want. There is nothing wrong with pointer conversion
>>when it makes sense.
>>
>
> Probably there _is_ a problem with pointer conversion when it does
> not make sense. The issue is sorting out the two cases :-)
>
well, to help out a bit about this problem of mine, is that I want to
create a virtual-computer out of Ada95, and I would greatly appreciate
if the code could run on as many platform as possible.
Considering the endianness, I somehow doubt now that pointer conversion
is what I want, I see how it can be done but I see how my bytes are not
going to end up at the right place on some architectures.
So from what I gather, the best solution for as much portability as
possible is to use an array of larger elements, then return only the
part of each element that is required.
Thanks for all the great replies! :)
EKS - Dave Poirier
next prev parent reply other threads:[~2002-03-04 13:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-03 14:58 64bit access to an array of 8bit values Dave Poirier
2002-03-03 15:38 ` Jim Rogers
2002-03-03 18:02 ` John R. Strohm
2002-03-03 16:39 ` Dave Poirier
2002-03-03 17:27 ` Jeffrey Creem
2002-03-05 20:49 ` John R. Strohm
2002-03-05 23:52 ` Jeffrey Creem
2002-03-06 7:30 ` John R. Strohm
2002-03-06 11:50 ` Jeffrey Creem
2002-03-07 20:03 ` John R. Strohm
2002-03-04 10:29 ` Robert Dewar
2002-03-04 13:02 ` Larry Kilgallen
2002-03-04 13:41 ` Dave Poirier [this message]
2002-03-03 22:24 ` David C. Hoos, Sr.
2002-03-03 22:51 ` Dave Poirier
2002-03-04 2:40 ` David C. Hoos, Sr.
2002-03-04 4:08 ` David Starner
2002-03-04 10:31 ` Robert Dewar
2002-03-04 18:00 ` Warren W. Gay VE3WWG
2002-03-04 3:15 ` Pat Rogers
2002-03-04 7:23 ` 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