🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2452

Re: void* type

#2452
From: rdwells
Date: Tue, 02 Apr 1996 01:54
20 lines
1361 bytes
Claus Hirth wrote:
> What still nags at me about the portability issue :
> Is there a machine still in use (Kurt, please name it)
> on which the representation of a
>         double *
> differs from the representation of a
>         char *
> ?

Well, I'm not Kurt, but as I recall the Data General Eclipse
series of computers used 32-bit byte addresses for (char *)
and 31-bit word addresses for (double *).  Word addresses had
to be left-shifted by one to create the equivalent byte address,
and vice versa.  (If I recall correctly, DG used the top
bit of a word address to do some funky indirect addressing.)

Caveat: this was back in my Fortran days; I don't think I
ever worked with a C compiler on that machine, but I don't
see how it could have avoided using different representations
for character pointers and other pointers.
Technical Details
Message-ID: <4jq1cr$a0k@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: rdwells@mmm.com
Newsgroups: comp.lang.c.moderated
Subject: Re: void* type
Date: 1 Apr 1996 19:54:35 -0600
Organization: 3M Company
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4jq1cr$a0k@solutions.solon.com>
References: <4iepre$ag7@solutions.solon.com> <4ii34g$nlp@solutions.solon.com> <4jibl5$89u@solutions.solon.com> <4jmcnh$lqk@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0 (WinNT; I)