|
![](/i/fill.gif) |
On 28/08/2015 02:37 PM, Lars Rohwedder wrote:
>> I saw an FAQ page somewhere that had examples of systems where the size
>> of a pointer really does change depending on what it points to.
>>
>> I imagine trying to do C on a Harvard architecture machine would be
>> "interesting" for exactly this reason. (And I gather that's quite
>> popular in DSP chips...)
>
> You don't need an exotic DSP platform, just use C or C++ on DOS. There
> you have different "memory models" (TINY, SMALL, MEDIUM, COMPACT, LARGE,
> HUGE), which result in different pointer sizes for code and/or data and
> the way pointer arithmetics work at all.
Oh, hello LPCWSTR, I didn't see you there... :-}
(In other words: Yes, 30 years later, the Win32 API still has these
obsolete type designations in it. Oh goodie.)
Post a reply to this message
|
![](/i/fill.gif) |