POV-Ray : Newsgroups : povray.off-topic : C/C++ Data Type Ambiguity Backwards : Re: Platform with non-8-bit bytes Server Time
8 Jul 2024 08:11:34 EDT (-0400)
  Re: Platform with non-8-bit bytes  
From: Orchid Win7 v1
Date: 28 Aug 2015 13:37:37
Message: <55e09c61$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.