Article View: comp.arch
Article #20716Re: looking for >32-bit address spa
From: Guy Harris
Date: Mon, 10 Apr 1989 22:33
Date: Mon, 10 Apr 1989 22:33
15 lines
1306 bytes
1306 bytes
>Doesn't C require that a pointer fit into a long? The (d)pANS has nuked the notion that you can stuff pointers into objects of any particular integral type, or stuff an integral value into a pointer (no, "p = 0" doesn't stuff the integral value 0 into "p", it stuffs a null pointer value of the appropriate type into "p") - and, according to the Rationale, has done so since some architectures don't "feature uniform pointers which are the size of some integer type". An architecture with pointers bigger than any integral type - even if those pointers are "uniform" - is such an architecture. The developer of such an architecture might want to worry about the problem anyway, if they're concerned with supporting applications that assume you *can* stuff pointers into integers. Then again, they might just see how many of them can use "void *" instead....
Technical Details
Message-ID:
<1422@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guyReferences:
<2569@elxsi.UUCP> <28200298@mcdurb>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.arch Subject: Re: looking for >32-bit address spa Message-ID: <1422@auspex.auspex.com> Date: 10 Apr 89 22:33:41 GMT References: <2569@elxsi.UUCP> <28200298@mcdurb> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 15