* REAL*16 support planned for DEC Fortran on AXP systems
@ 1993-08-11 1:42 Steve Lionel
1993-08-12 3:05 ` double precision on alpha (was: " ~{B@TFI=~}Luke Y. Lu
0 siblings, 1 reply; 6+ messages in thread
From: Steve Lionel @ 1993-08-11 1:42 UTC (permalink / raw)
REAL*16 White Paper
A Specification for Customers
This document provides an overview of Digital's plans for REAL*16 func-
tionality for Fortran customers on DEC OSF/1 AXP and OpenVMS AXP.
Author: Beth Benoit
Date: 20 July 1993
Digital Equipment Corporation
Maynard, Massachusetts
1 Introduction
This document provides a high-level functional description of Digi-
tal's plans to support IEEE extended 128-bit floating point, imple-
mented in Fortran as REAL*16. This support will be forthcoming on both
DEC OSF/1 AXP and OpenVMS AXP platforms before July 1994, and on Win-
dows NT AXP some time after that.
2 Overview
A number of computer vendors (Digital, CRAY, IBM, and HP) have, over
the years, offered an extended precision floating point datatype, rep-
resented in Fortran as REAL*16. Many people in the Fortran user-community
have come to rely on the accuracy of this datatype in their applica-
tions. For these customers, the current lack of REAL*16 support in Dig-
ital's AXP Fortran development environment is an impediment that keeps
them from considering AXP when purchasing a new system. Digital rec-
ognizes this, and is in the process of implementing support for this
datatype.
The requirement for 128-bit extended precision floating point datatype
has been expressed by both DEC OSF/1 and OpenVMS Fortran customers.
Digital expects Windows NT customers to have a similar requirement.
Digital's customers have also made it clear that there is a require-
ment for this support to be IEEE-conformant. For this reason, Digi-
tal is choosing a data representation based on the IEEE standard, rather
than the data representation used on VAX/VMS known as H-float.
3 Operations on REAL*16
The best way to describe which operations on REAL*16 will be allowed
is to say that all the operations and intrinsics supported for REAL*16
by VAX FORTRAN today will be available on Digital's AXP platforms to-
morrow. For those who want more detail, this is described in Digital's
DEC_Fortran_Language_Reference_Manual, which describes most of Dig-
ital's Fortran products.
While DEC Fortran might also support a COMPLEX*32 datatype, consist-
ing of two REAL*16 datatypes, Digital has no plans to implement COM-
PLEX*32 support. So far, it seems there are fewer applications that
rely on this datatype. While the IBM RS6000, /370, and 3090 systems
support COMPLEX*32, systems from Hewlett Packard, Sun, and Digital have
not supported COMPLEX*32 in the past.
On OpenVMS AXP, DEC Fortran plans to provide "foreign file support"
in the I/O runtime library, which will enable conversion between the
VAX H-float representation of REAL*16 and the AXP representation of
REAL*16 for unformatted binary files. This is particularly useful for
customers who are sharing files between both VAX and AXP OpenVMS sys-
tems.
[DEC Fortran for OpenVMS VAX will also provide the "foreign file
support for conversion between VAX H-float and the AXP REAL*16
type in its V6.1 release, due later this year. - SBL]
4 REAL*16-the Bits and Bytes
The ALPHA AXP hardware does not support an extended precision float-
ing point datatype. In order to provide compiler code generation for
the Fortran REAL*16 datatype, it is necessary to emulate this support
in software.
Digital's AXP implementation of the REAL*16 datatype will be 128-bit,
with a 15-bit exponent and 113-bit mantissa. The memory layout of an
REAL*16 on AXP will be little-endian with the sign and exponent in the
high quadword. The register format will also be little-endian, with
the sign and exponent in the higher numbered (odd) register of a reg-
ister pair. The implementation of REAL*16 keeps 128-bit floating val-
ues in even-odd pairs of fixed point registers.
5 Performance
Since Digital's 128-bit floating point datatype will be software-emulated
on AXP, the performance of mathematical operations on this data-type
will be slower than operations on 64-bit floating point numbers. This
is also true on other systems available today; for instance, the Hewlett
Packard PA-RISC series also supports REAL*16 in software emulation,
as do most recent VAX-series processors from Digital. Digital expects
the performance of REAL*16 to be competitive.
6 Packaging and Delivery
The addition of a new floating point datatype requires changes to a
number of pieces of a software development system. Digital's deliv-
ery of a software development environment which fully supports the REAL*16
datatype will require updates of the operating system, the Fortran com-
piler, and on OSF/1 the developer's kit which contains the dbx debug-
ger. The I/O and math runtime libraries which are bundled with the op-
erating system have the longest lead time, and the most restrictive
schedules.
Digital's policy is to not announce availability dates until the func-
tionality is actually available. While it's too soon to announce dates,
Digital engineering has development and testing of REAL*16 underway
now. Based on the DEC OSF/1 and OpenVMS operating system schedules as
they exist today, we believe REAL*16 support will be in customer hands
before July 1994.
7 Comments
If you have comments about this white paper, Digital Engineering would
like to hear from you. You can address comments to either:
Catherine Epperson Beth Benoit
Fortran Product Manager Fortran Engineering Manager
Digital Equipment Corporation Digital Equipment Corporation
ZKO2-1/M11 ZKO2-3/N30
110 Spit Brook Road 110 Spit Brook Road
Nashua, NH 03062-2698 Nashua, NH 03062-2698
epperson@wereok.enet.dec.com benoit@tle.enet.dec.com
--
Steve Lionel lionel@quark.enet.dec.com
SDT Languages Group
Digital Equipment Corporation
110 Spit Brook Road
Nashua, NH 03062 "Free advice is worth every cent"
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: double precision on alpha (was: REAL*16 support planned for DEC Fortran on AXP systems
1993-08-11 1:42 REAL*16 support planned for DEC Fortran on AXP systems Steve Lionel
@ 1993-08-12 3:05 ` ~{B@TFI=~}Luke Y. Lu
1993-08-12 6:43 ` Martin Egger
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: ~{B@TFI=~}Luke Y. Lu @ 1993-08-12 3:05 UTC (permalink / raw)
I thought double precision in dec f77 on alpha is real*16 and that real is
real*8 since alpha is 64-bit machine. Will some dec people please
enlighten me with correct info. What about float and double in dec cc/cxx?
Thanks in advance.
--Luke
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: double precision on alpha (was: REAL*16 support planned for DEC Fortran on AXP systems
1993-08-12 3:05 ` double precision on alpha (was: " ~{B@TFI=~}Luke Y. Lu
@ 1993-08-12 6:43 ` Martin Egger
1993-08-12 12:09 ` Mark Bartelt
1993-08-12 11:17 ` Dan Pop
1993-08-12 13:56 ` Steve Lionel
2 siblings, 1 reply; 6+ messages in thread
From: Martin Egger @ 1993-08-12 6:43 UTC (permalink / raw)
In article <24cc15$qke@donald.cc.utexas.edu>, ylu@donald.cc.utexas.edu (~{B@TFI=~}Luke Y. Lu) writes:
> I thought double precision in dec f77 on alpha is real*16 and that real is
> real*8 since alpha is 64-bit machine.
Wrong
> Will some dec people please enlighten me with correct info.
CHARACTER 1 Byte
LOGICAL 4 Bytes (=LOGICAL*4)
INTEGER 4 Bytes (=INTEGER*4)
REAL 4 Bytes (=REAL*4)
DOUBLE PRECISION 8 Bytes (=REAL*8)
COMPLEX 8 Bytes (=COMPLEX*8)
DOUBLE COMPLEX 16 Bytes (=COMPLEX*16)
You can modify the defaults for REAL and INTEGER with the compiler switches
/REAL_SIZE={32,64} and /INTEGER_SIZE={16,32,64}
> What about float and double in dec cc/cxx?
char 1 Byte
short int 2 Bytes
int 4 Bytes
long int 4 Bytes
float 4 Bytes
double 8 Bytes
long double 8 Bytes
Martin
*******************************************************************************
Martin Egger, Ph.D., Computing Services - Head of System/User Support Group
University of Bern, P.O. Box, Laenggassstrasse 51, CH-3012 Bern, Switzerland
Phone: ++41 (0)31 65 38 45, Fax: ++41 (0)31 65 38 65, Telex: 912 643 pibe ch
RFC: egger@id.unibe.ch, X.400: S=egger;OU=id;O=unibe;P=switch;A=arcom;C=ch;
HEPNET/SPAN: 20579::49202::egger, DECnet (Switzerland): 49202::egger
*******************************************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: double precision on alpha (was: REAL*16 support planned for DEC Fortran on AXP systems
1993-08-12 6:43 ` Martin Egger
@ 1993-08-12 12:09 ` Mark Bartelt
0 siblings, 0 replies; 6+ messages in thread
From: Mark Bartelt @ 1993-08-12 12:09 UTC (permalink / raw)
I haven't seen anyone post a correction, so I'll do so ...
[ Luke Y. Yu ]
| What about float and double in dec cc/cxx?
[ Martin Egger ]
| char 1 Byte
| short int 2 Bytes
| int 4 Bytes
| long int 4 Bytes <<== nope
| float 4 Bytes
| double 8 Bytes
| long double 8 Bytes
True that sizeof(short)==2 and sizeof(int)==4, but sizeof(long)==8 with
DEC's OSF/1 cc on the AXP.
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Clothes not busy being worn are busy drying." - Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: double precision on alpha (was: REAL*16 support planned for DEC Fortran on AXP systems
1993-08-12 3:05 ` double precision on alpha (was: " ~{B@TFI=~}Luke Y. Lu
1993-08-12 6:43 ` Martin Egger
@ 1993-08-12 11:17 ` Dan Pop
1993-08-12 13:56 ` Steve Lionel
2 siblings, 0 replies; 6+ messages in thread
From: Dan Pop @ 1993-08-12 11:17 UTC (permalink / raw)
In <24cc15$qke@donald.cc.utexas.edu> ylu@donald.cc.utexas.edu (~{B@TFI=~}Luke Y. Lu) writes:
>I thought double precision in dec f77 on alpha is real*16 and that real is
>real*8 since alpha is 64-bit machine.
Although this sounds logical, it would create big portability problems to the
existing code. So, to make the life of everybody easier, they've preserved
the most popular lengths.
Dan
--
Dan Pop
Tel: +41.22.767.2335
Email: danpop@cernapo.cern.ch
Mail: CERN - PPE, Bat. 21 1-023, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: double precision on alpha (was: REAL*16 support planned for DEC Fortran on AXP systems
1993-08-12 3:05 ` double precision on alpha (was: " ~{B@TFI=~}Luke Y. Lu
1993-08-12 6:43 ` Martin Egger
1993-08-12 11:17 ` Dan Pop
@ 1993-08-12 13:56 ` Steve Lionel
2 siblings, 0 replies; 6+ messages in thread
From: Steve Lionel @ 1993-08-12 13:56 UTC (permalink / raw)
In article <24cc15$qke@donald.cc.utexas.edu>, ylu@donald.cc.utexas.edu
(~{B@TFI=~}Luke Y. Lu) writes:
|>I thought double precision in dec f77 on alpha is real*16 and that real is
|>real*8 since alpha is 64-bit machine. Will some dec people please
|>enlighten me with correct info. What about float and double in dec cc/cxx?
|>
Yes, the Alpha AXP architecture is "64 bits", but that means that it has
a 64-bit virtual address space and support for 64-bit integers. It doesn't
automatically change the size of variables. Single precision is still four
bytes, double is still 8. VAX has had REAL*16 (H_float) since 1980 - the
initial lack of a 16-byte floating datatype on AXP has been a concern to
a number of users, hence our work to add support for a type of that size.
--
Steve Lionel lionel@quark.enet.dec.com
SDT Languages Group
Digital Equipment Corporation
110 Spit Brook Road
Nashua, NH 03062 "Free advice is worth every cent"
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1993-08-12 13:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-11 1:42 REAL*16 support planned for DEC Fortran on AXP systems Steve Lionel
1993-08-12 3:05 ` double precision on alpha (was: " ~{B@TFI=~}Luke Y. Lu
1993-08-12 6:43 ` Martin Egger
1993-08-12 12:09 ` Mark Bartelt
1993-08-12 11:17 ` Dan Pop
1993-08-12 13:56 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox