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-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news2.arglkargh.de!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Michael Kraemer Newsgroups: comp.sys.dec Subject: Re: OpenVMS Still Only 32-Bit Addresses!? Date: Mon, 14 Feb 2011 09:38:56 +0100 Organization: T-Online Message-ID: References: <743a5365-d7b1-4730-bbe1-37e58643972f@z20g2000yqe.googlegroups.com> <117a13ef-2b0b-4418-ad13-aa5abbcd0cf1@w19g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1297672737 01 n10618 pz5jCwY6G0hnmvW 110214 08:38:57 X-Complaints-To: usenet-abuse@t-online.de X-ID: VrHLQUZvYehm+CX9rNfoH539pgcWnPFE+9VBPxrwKtZy2O2kLz3v4t User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; de-DE; rv:1.3) Gecko/20030616 X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.sys.dec:2836 John Wallace schrieb: > You have your definition of 64bit number cruncher and the rest of the > world has theirs. I guess the "rest of the world" is pretty small in this case. > 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? In all worlds I know of it's 8 bytes. > Does "long long" arithmetic appear (to application > programmers) to work on a 32bit CPU with a 32bit OS? Yes. It would work just a bit faster if hardware and compilers would support 64bit integers directly in hardware. But this has nothing to do with 64bit addressing. > 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. And what is the fraction of programs out there which spend most of their time in adding/subtracting time_t's? And still we are talking just 64bit integers, not 64bit addressing. > 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. What ambiguity? > ILP32 means that integers, longs, and pointers are all 32bit. that's what 32bit systems use. > ILP64 means that integers, longs, and pointers are all 64bit. > > LP64 means that longs and pointers (but not integers) are 64bit. that's what most (all ?) 64bit systems use. > And so on. There's no "so on" and no ambiguity. One just has a problem with the "long" data type, which on some systems/compilers (e.g. OSF/1) suddenly become 8 bytes without further notice. Lots of fun if one used it to describe data on external media. > 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). This is not restricted to VMS. Most systems/compilers I know of handle the transition to 64bit in a backward compatible manner, i.e. they use ILP32 by default, as it should be, and the resulting binaries would run no matter whether the underlying kernel is 32 or 64bit. One has to enable some extra switch to get LP64. > > 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.