From 1621379757421246356
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,e94695845965b249
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-10-20 10:14:52 PST
Newsgroups: comp.std.c++
Path: sparky!uunet!microsoft!hexnut!jimad
From: jimad@microsoft.com (Jim Adcock)
Subject: Re: Zero-length structures and pointer comparisons
Message-ID: <1992Oct20.205512.8261@microsoft.com>
Date: 20 Oct 92 20:55:12 GMT
Organization: Microsoft Corporation
References: <23915@alice.att.com> <1992Oct19.055511.18826@jyu.fi> <1992Oct19.152004.8350@lth.se>
Lines: 12

In article <1992Oct19.152004.8350@lth.se> dag@control.lth.se (Dag Bruck) writes:
|The ordering of pointers may be implementation defined, and I don't
|even think it would have to be equal between runs of the same program.

Under many if not most OS's the ordering of pointers resulting from heap
allocations would be implementation defined, and needn't be equal between
runs of the same program.  One can usually figure out some system dependent
hack to force an ordering on allocations, but program and/or system performance
will frequently suffer.  Thus I would suggest that strong ordering constraints
should remain implementation dependent, as in the C standard.  IE speed
should never be sacrificed up front in order to address secondary concerns.



