Article View: comp.std.c++
Article #1209Re: Zero-length structures and pointer comparisons
From: Jim Adcock
Date: Fri, 11 Dec 1992 23:05
Date: Fri, 11 Dec 1992 23:05
16 lines
1370 bytes
1370 bytes
In article <1992Dec10.121935.19315@ucc.su.OZ.AU> maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes: | The answer to this particular question is YES, they must |compare equal according to the ARM. And I think this is a problem |for OS design for the 386, for example, where the memory management |kernel will just have to ignore the ARM. No more nor less than any other virtual memory OS that allows multiply mapped pages. Since there is no functionality in the language requiring such multiply mapped pages, you only get in this situation by invoking some system dependency, in which case you are making use of implementation dependencies. If you will, a common C/C++ implementation defined extension to the language is to allow the use of OS calls in order to map various regions of memory to the same underlying page, allowing the same object to be accessed via differing addresses. Implementation defined, no more nor less.
Technical Details
Message-ID:
<1992Dec11.230534.10499@microsoft.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!microsoft!hexnut!jimadReferences:
<1992Dec8.103218.27689@lth.se> <1992Dec8.173855.18153@meaddata.com> <1992Dec10.121935.19315@ucc.su.OZ.AU>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!hexnut!jimad From: jimad@microsoft.com (Jim Adcock) Subject: Re: Zero-length structures and pointer comparisons Message-ID: <1992Dec11.230534.10499@microsoft.com> Date: 11 Dec 92 23:05:34 GMT Organization: Microsoft Corporation References: <1992Dec8.103218.27689@lth.se> <1992Dec8.173855.18153@meaddata.com> <1992Dec10.121935.19315@ucc.su.OZ.AU> Lines: 17