From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,abe9f39587a7b197 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,abe9f39587a7b197 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-01-19 09:38:24 PST Xref: sparky vmsnet.alpha:105 comp.sys.dec:6961 Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!mccall!infopiz!cmkrnl!jeh Newsgroups: vmsnet.alpha,comp.sys.dec Subject: Re: No 64-bit OpenVMS soon? Message-ID: <1993Jan18.234713.1225@cmkrnl.com> From: jeh@cmkrnl.com Date: 18 Jan 93 23:47:13 PST References: <1993Jan15.194312.3438@sol.UVic.CA> <1993Jan18.172458.24506@eco.twg.com> <1993Jan18.211506.27601@oracle.pnl.gov> Organization: Kernel Mode Systems, San Diego, CA 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