Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Michael Kraemer <M.Kraemer@gsi.de>
Subject: Re: OpenVMS Still Only 32-Bit Addresses!?
Date: Mon, 14 Feb 2011 09:38:56 +0100	[thread overview]
Message-ID: <ijapn1$abq$01$1@news.t-online.com> (raw)
In-Reply-To: <efb7a61b-5732-4724-8b6c-ed3fca537ae4@r13g2000yqk.googlegroups.com>

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.



  parent reply	other threads:[~2011-02-14  8:38 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
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 [this message]
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