From: jeh@cmkrnl.com
Subject: Re: No 64-bit OpenVMS soon?
Date: 18 Jan 93 23:47:13 PST [thread overview]
Message-ID: <1993Jan18.234713.1225@cmkrnl.com> (raw)
In-Reply-To: 1993Jan18.211506.27601@oracle.pnl.gov
In article <1993Jan18.211506.27601@oracle.pnl.gov>, jordan@warped.pnl.gov (Randy Jordan) writes:
> I have been away from VMS for a while (Ultrix) ... but the
> old VMS once supported G-FLOT(?) 64bit Math functions. I remember
> as I played around with them in a program I put in the DECUS
> library, a calculator/spreadsheet thing that used 64 bits. Is that
> still available? It was a SIMULATED 64 bits if I remember, could
> it have been made REAL in the Alpha VMS?
> RJ
VAX/VMS still does support two 64-bit floating point math formats - D and G.
D is what you got by default if in Fortran (for example) you asked for
double-precision. G traded off a few mantissa bits (slightly lower
precision than D, but not as low as 32-bit F format) for a few exponent
bits (for a larger dynamic range). There is also the 128-bit H floating
format, with more precision than D and more dynamic range than G.
(Colloquially G and H are known as "giant" and "huge".)
On the original VAX -- the VAX-11/780 -- support for all four was in firmware
and the FP accelerator. (Actually this isn't strictly true. On the *original*
780's, only F and D existed. G and H were added later via a microcode option.)
So for every FP operation you had four opcodes, e.g.
MULF2
MULD2
MULG2
MULH2
The 750 was similar -- F and D standard, G and H optional. The lowly 730 and
725, believe it or not, came with support for all four fp types standard.
Later processors "subsetted" the instruction set in various ways. The
MicroVAX I implemented either (F and D) or (F and G). The MicroVAX II
implemented F, D, and G. And so on... in *all* VAX processors supported by
current releases of VMS, the "missing" opcodes (e.g. MULH2 on a MicroVAX II)
will generate emulated instruction traps on the machines that don't implement
them. A VMS-provided exception service routine will then emulate the
instruction and return control to the code that needed it, transparently.
(Someone with more time than I can go through the ~"Implementation
Dependencies" appendix of the _VAX Architecture Reference Manual_ and provide
the complete list of what fp formats were implemented on each processor.)
Now we come to Alpha. Naturally things are different.
The Alpha architecture defines four different fp datatypes divided into two
subsets: DEC floating point (F and G) and IEEE fp (S and T). An
implementation of the Alpha architecture must include all of a subset or none.
If an FP operation is attempted on an Alpha that doesn't support the particular
data type, it will be emulated in software (similar to what happens on a VAX).
(F and S), and (G and T), look the same in a register but different in memory.
Also, exceptions, rounding, and "valid numbers" differ between (F and S) and (G
and T).
You will notice there is no built-in support (even via automatic emulation) of
the VAX D and H data types.
To get back to the original question -- will VMS on Alpha (or, to be precise,
"OpenVMS Alpha AXP") support 64-bit operations by programs? Certainly. The
compilers will generate the opcodes for operations on the 64-bit fp formats,
as well as for 64-bit integers, and the CPU will execute them.
When Digital says "VMS on Alpha won't support 64 bits for a while", what they
are saying is that it won't support a 64-bit virtual address space, and that
all of the argument passing mechanisms, etc., still use 32-bit pointers,
32-bit integers, and so on. It most certainly will support 64-bit integer
and fp operations in user code. RTLs are also present to support these
numerical operations.
--- Jamie Hanrahan, Kernel Mode Systems, San Diego CA
drivers, internals, networks, applications, and training for VMS and Windows NT
uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and
Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG
Internet: jeh@cmkrnl.com, or hanrahan@eisner.decus.org Uucp: uunet!cmkrnl!jeh
next prev parent reply other threads:[~1993-01-19 7:47 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1993Jan15.194312.3438@sol.UVic.CA>
1993-01-16 2:16 ` No 64-bit OpenVMS soon? jeh
1993-01-18 17:24 ` Lawrence B. Henry III
1993-01-18 21:15 ` Randy Jordan
1993-01-19 6:05 ` Bernhard Fabricius
1993-01-19 13:38 ` Gerard Stafleu
1993-01-19 15:47 ` Phill Hallam-Baker
1993-01-19 22:01 ` jeh
1993-01-20 0:18 ` Reece R. Pollack
1993-01-20 15:05 ` Jonathan Edwards
1993-01-22 17:03 ` Phill Hallam-Baker
1993-01-22 17:26 ` Randy Jordan
1993-01-23 22:13 ` Phill Hallam-Baker
1993-01-24 19:43 ` Lawrence B. Henry III
1993-01-22 18:44 ` Christopher T. Day
1993-01-23 5:25 ` jeh
1993-01-23 17:36 ` gezelter
[not found] ` <1993jan22.17262references: <c1bv2o.91s@dscomsa.desy.de>
1993-02-01 18:46 ` George J. Carrette
[not found] ` <1993Jan19.064207.27534@cunews.carleton.ca>
1993-01-19 18:12 ` New removeable media Lee Havemann
1993-01-19 7:47 ` jeh [this message]
1993-01-22 6:27 ` No 64-bit OpenVMS soon? Jeff Silverman
1993-01-23 7:28 ` Jeff Silverman
1993-01-23 20:06 ` zrepachol
1993-01-19 2:48 ` Eric Thomas
1993-01-19 20:50 ` Lawrence B. Henry III
1993-01-20 2:22 ` Eric Thomas
1993-01-20 2:53 ` Marcus J Ranum
1993-01-20 11:30 ` George J. Carrette
1993-01-19 19:25 ` Bruce C. Wright
1993-01-30 5:11 ` pettengill
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