From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,ddd5f2f431fd91ca X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!r13g2000yqk.googlegroups.com!not-for-mail From: John Wallace Newsgroups: comp.sys.dec Subject: Re: OpenVMS Still Only 32-Bit Addresses!? Date: Sun, 13 Feb 2011 13:30:15 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <743a5365-d7b1-4730-bbe1-37e58643972f@z20g2000yqe.googlegroups.com> <117a13ef-2b0b-4418-ad13-aa5abbcd0cf1@w19g2000yqa.googlegroups.com> NNTP-Posting-Host: 80.229.247.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297632615 13279 127.0.0.1 (13 Feb 2011 21:30:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 13 Feb 2011 21:30:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r13g2000yqk.googlegroups.com; posting-host=80.229.247.139; posting-account=LoTgDQkAAADTKXJ587vuIocn0MiURp6p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.sys.dec:2811 On Feb 13, 2:49=A0pm, Michael Kraemer wrote: > John Wallace schrieb: > > > On Feb 13, 2:21 pm, Michael Kraemer wrote: > > > You are rather misunderstanding the difference between a 64bit virtual > > address and the ability to address more than 32bits of physical > > memory. > > Don't think so. A 64bit number cruncher is pretty useless > without enough RAM under the hood. > And, btw, the first Alphas had only 43 bits address space, > from which only 34 bits were actually implemented. > > > But don't worry about it, plenty of others have made the same > > mistake. > > "A 64bit number cruncher is pretty useless without enough RAM under the hood." Don't think so right back at you. You have your definition of 64bit number cruncher and the rest of the world has theirs. It's perfectly possible to have a problem that requires 64bit precision without needing massive datasets (ie bigger than 32bit address space, or whatever maximum amount the OS allows the app to use). In fact for a long time the 64bit address space wasn't even practical. Even now, with 64bit-addressable processors the industry default, not many boxes actually need more than 32bits worth of address space of physical memory (that's probably less true this year than it was before Windows Vista). The number of applications needing >32bit virtual or physical address space was and is relatively small in comparison with the number that may benefit from >32bit precision. E.g. how big is C "long long" in your world? Does "long long" arithmetic appear (to application programmers) to work on a 32bit CPU with a 32bit OS? You may be familiar with UNIX's time_t, which is now 64bits. Calculations using it (or any similar 64bit quantity) don't need a 64bit virtual address space, but they do benefit from more than 32 bit arithmetic. There are still lots of apps where 64bits is too much wasted memory for a default int though; why waste half your valuable cache? One way to avoid the "what does 64bit mean" ambiguity is to use the "ILP" notation that goes back a good few years - right back, in fact to the early 1990s when 64bit processors were first introduced. ILP32 means that integers, longs, and pointers are all 32bit. ILP64 means that integers, longs, and pointers are all 64bit. LP64 means that longs and pointers (but not integers) are 64bit. And so on. You can find further discussions on how this relates to VMS in the VMS Calling Standard docs. As has been pointed out, user programs on VMS miraculously appear to use the ILP32 model even though the underlying hardware operates in 64bit address mode. (Stuff that works closer to the hardware may well *have* to know about these distinctions; normal user apps don't). If I remember rightly, Tru64 (DEC OSF/1 as it then was) and Solaris both use(d) the LP64 model. 64bit Linux on AMD64 also uses LP64; "int" remains 32bits by default.