From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: converting pointer to value
Date: Fri, 5 Mar 2021 09:59:49 +0100 [thread overview]
Message-ID: <s1sru5$9uh$2@dont-email.me> (raw)
In-Reply-To: <29d7b43c-12d1-4104-9f3e-53b0429e6b0an@googlegroups.com>
Den 2021-03-04 kl. 22:00, skrev Shark8:
> On Thursday, March 4, 2021 at 1:09:24 PM UTC-7, Simon Wright wrote:
>> Shark8 writes:
>>
>>> if they did not have the same representation you would
>>> have to use UNCHECKED_CONVERSION
>> and you'd be in a world of pain
> Not necessarily, as the registers of x86 show with AX overlaid upon AH+AL, absolutely not the same representation, unchecked_conversion (or address-overlay) would be a perfectly fine way to model the situation.
> But the given situation: a 16-bit integer and an address-type? / That's just asking for pain.
>
hmm, yes.
But perhaps I should cast the 16 bit to a 64 bit variable
and then do unchecked conversion?
I'll spend the afternoon trying different approaches
--
Björn
next prev parent reply other threads:[~2021-03-05 8:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 15:59 converting pointer to value Björn Lundin
2021-03-04 16:50 ` Dmitry A. Kazakov
2021-03-05 7:06 ` Björn Lundin
2021-03-05 7:44 ` Dmitry A. Kazakov
2021-03-05 9:10 ` Björn Lundin
2021-03-04 16:55 ` Shark8
2021-03-04 17:35 ` Dmitry A. Kazakov
2021-03-04 19:38 ` Shark8
2021-03-04 21:27 ` Dmitry A. Kazakov
2021-03-05 8:58 ` Björn Lundin
2021-03-05 8:54 ` Björn Lundin
2021-03-05 11:02 ` Björn Lundin
2021-03-05 11:57 ` Björn Lundin
2021-03-05 14:00 ` Dmitry A. Kazakov
2021-03-09 12:07 ` [SOLVED] " Björn Lundin
2021-03-04 20:09 ` Simon Wright
2021-03-04 21:00 ` Shark8
2021-03-05 8:59 ` Björn Lundin [this message]
2021-03-05 7:10 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox