Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Subject: Re: OpenVMS Still Only 32-Bit Addresses!?
Date: Sun, 13 Feb 2011 22:44:43 +0000 (UTC)	[thread overview]
Message-ID: <ij9msr$1d1$1@news.eternal-september.org> (raw)
In-Reply-To: efb7a61b-5732-4724-8b6c-ed3fca537ae4@r13g2000yqk.googlegroups.com

John Wallace <johnwallace4@yahoo.co.uk> wrote:

(snip, someone wrote)
 
> "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).

Yes.  The previous post, as I understood it, was trying to indicate
that 64 bit virtual address would be useful with 4GB or less
physical memory.  The comments, by me and others, indicate that 
often isn't true.  If you can get by with a 32 bit virtual address,
then that is fine.
 
> 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?

It isn't hard to do 64 bit add and subtract, and even 32 bit
multiply with a 64 bit product on 32 bit hardware.  Just a little
harder to do 64 bit product.  If you don't do it so often, 
divide by a 64 bit dividend isn't so hard, either.
 
> 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.

Fortunately time_t is rarely in the inner loop of a number
crunching applications.
 
> There are still lots of apps where 64bits is too much wasted memory
> for a default int though; why waste half your valuable cache?

D.E.Knuth has a web site (I believe that is where it is) complaining
about the wast of 64 bit addresses (also in cache) where they
are not needed.  
 
(snip on ILP notation)

> 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.

I do remember 64 bit (long) on the early Alpha systems, before 
(long long) existed.  It broke a lot of code, especially TCP/IP,
that most later changed to 32 bit (long) and 64 bit (long long).

-- glen


  reply	other threads:[~2011-02-13 22:44 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13  0:37 OpenVMS Still Only 32-Bit Addresses!? Lawrence D'Oliveiro
2011-02-13  1:44 ` tothestarsby2100
2011-02-13  2:24   ` Lawrence D'Oliveiro
2011-02-13 14:18     ` VAXman-
2011-02-13 22:16       ` Lawrence D'Oliveiro
2011-02-13 23:49         ` John Wallace
2011-02-14  0:18           ` VAXman-
2011-02-14  0:31           ` glen herrmannsfeldt
2011-02-13  3:06 ` Hans Bachner
2011-02-13  9:39 ` Hans Vlems
2011-02-13 10:34   ` Lawrence D'Oliveiro
2011-02-13 11:19     ` glen herrmannsfeldt
2011-02-13 14:21       ` Michael Kraemer
2011-02-13 14:32         ` John Wallace
2011-02-13 14:49           ` Michael Kraemer
2011-02-13 21:30             ` John Wallace
2011-02-13 22:44               ` glen herrmannsfeldt [this message]
2011-02-14  1:47                 ` Lawrence D'Oliveiro
2011-02-14 18:17                   ` Bob Koehler
2011-02-14 23:39                     ` Lawrence D'Oliveiro
2011-02-15 14:34                     ` Bob Koehler
2011-02-14  8:38               ` Michael Kraemer
2011-02-14  9:47                 ` Lawrence D'Oliveiro
2011-02-14 23:11                 ` Dennis Grevenstein
2011-02-14 23:42                   ` Lawrence D'Oliveiro
2011-02-15  2:11                   ` Michael Kraemer
2011-02-15  3:35                     ` Lawrence D'Oliveiro
2011-02-15  8:31                       ` Michael Kraemer
2011-02-15  8:46                         ` John Wallace
2011-02-15  9:57                           ` Michael Kraemer
2011-02-15 23:22                             ` Lawrence D'Oliveiro
2011-02-16  6:06                               ` Michael Kraemer
2011-02-16 11:59                                 ` Lawrence D'Oliveiro
2011-02-15 23:42                             ` John Wallace
2011-02-15 14:38                     ` Bob Koehler
     [not found]                     ` <ijcs9p$hv4Organization: Encompasserve <WE3oMqzMhq9Z@eisner.encompasserve.org>
2011-02-15 17:07                       ` Michael Kraemer
2011-02-15 23:21                         ` Lawrence D'Oliveiro
2011-02-16  6:09                           ` Michael Kraemer
2011-02-16 11:54                             ` Lawrence D'Oliveiro
2011-02-13 22:33           ` glen herrmannsfeldt
2011-02-13 22:18         ` Lawrence D'Oliveiro
2011-02-13 22:50           ` glen herrmannsfeldt
2011-02-14  1:50             ` Lawrence D'Oliveiro
2011-02-14  3:22               ` glen herrmannsfeldt
2011-02-14 18:18                 ` Bob Koehler
2011-02-14 19:35                   ` glen herrmannsfeldt
2011-02-14 20:07                   ` Bob Eager
2011-02-14 23:09                     ` Lawrence D'Oliveiro
2011-02-14 23:11                       ` Bob Eager
2011-02-14 23:39                         ` Lawrence D'Oliveiro
2011-02-15  0:12                           ` Bob Eager
2011-02-15  1:56                             ` Lawrence D'Oliveiro
2011-02-15  6:45                               ` Bob Eager
2011-02-15 12:26                               ` VAXman-
2011-02-15  2:51                             ` VAXman-
2011-02-13 22:28         ` glen herrmannsfeldt
2011-02-14 18:10   ` Bob Koehler
2011-02-14 20:44     ` Jerome H. Fine
2011-02-14 21:00       ` Michael Kraemer
2011-02-14 22:29       ` John Wallace
2011-02-14 20:04   ` John Wallace
2011-02-13 14:08 ` VAXman-
2011-02-13 14:34 ` John Wallace
2011-02-13 14:54   ` VAXman-
2011-02-13 22:14     ` Lawrence D'Oliveiro
2011-02-14  0:08       ` VAXman-
2011-02-14  0:51         ` John Wallace
2011-02-14  1:22           ` VAXman-
2011-02-14  4:00           ` glen herrmannsfeldt
2011-02-14  8:03             ` Michael Kraemer
2011-02-14 18:20               ` Bob Koehler
2011-02-14  0:11       ` VAXman-
2011-02-13 22:15   ` Lawrence D'Oliveiro
2011-02-13 23:40     ` John Wallace
2011-02-14  1:20       ` Hans Bachner
2011-02-14 18:09 ` Bob Koehler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox