* Re: Differenc of FORTRAN Architecture ?
1996-07-25 4:00 Differenc of FORTRAN Architecture ? Suzuki shigeki
@ 1996-07-26 4:00 ` fairfield
0 siblings, 0 replies; 2+ messages in thread
From: fairfield @ 1996-07-26 4:00 UTC (permalink / raw)
In article <suzukis-2507961910290001@ppp097.inv.co.jp>,
suzukis@inv.co.jp (Suzuki shigeki) writes:
> I have some difficuties to use DEC VAX-Alpha for ISSA thermal analysis
> using TRASYS and SINDA. TRASYS and SINDA for VAX is only available and for
> VAX-Alpha is not available.
> This difference of FORTRAN architecture between VAX and VAX-Alpha makes
> it difficult to port these codes to VAX-Alpha.
> Why it is so difficult to port FORTRAN source code from VAX to VAX-Alpha ?
First some terminology. There is no such thing as a
"VAX-Alpha". There is VAX, and there is Alpha, and these refer to
two different _hardware_ architectures. In addition, there is
Openvms/VAX and OpenVMS/Alpha, the same VMS _operating system_
running on the two different architectures. (It used to be called
"VAX/VMS" before there was Alpha, but they changed the name to
OpenVMS/VAX as of VMS V5.5-2.) And to be complete, there is also
Digital Unix and Windows/NT that runs on Alpha (but not VAX)
hardware.
So, let's assume you've got some Fortran code that works under
OVMS/VAX but not under OVMS/Alpha. Please let us know _which_
version of OVMS/VAX you're running, which version of OVMS/Alpha
you're running ($ SHOW SYSTEM will tell you), and perhaps more
importantly, which versions of Fortran you're running on the VAX and
on the Alpha. There are a lot of changed in Digital Fortran V6.0
and above (which is available on both VAX and Alpha) relative to VAX
Fortran V5.8 and below. Many assumptions about static storage and
alignment under VAX Fortran don't hold under Digital Fortran. Also,
many "dirty programming" tricks that worked on the VAX hardware fail
on the Alpha hardware. For example, on VAX you could pass a single
precision REAL variable to a DOUBLE PRECISION actual argument, and
except for the least significant mantissa bits, this would work
fine. It fails under Alpha for a couple of reasons, one being that
double precision uses G_float format for calaculations rather than
D_float as on the VAX. Another being that the system detects and
complains about "dirty zeros", REALs with a zero exponent but
non-zero mantissa. On the VAX, only the exponent (and the sign bit)
were checked.
So in general, what makes porting "hard" is that you've got to
make your code more standard-conforming. It helps to read the
various documents on VAX to Alpha porting. There are a number of
them, as well as an article Steve Lionel wrote specifically on
porting Fortran from VAX to Alpha.
If you still have trouble, you'll need to provide some of the
specific information requested above, and the exact errors you get
when you try to compile on Alpha. Oh, but if TRASYS and SINDA are
commercial products, there's no reason the vendor can't port them to
Alpha. Have you asked them to? If it's reasonable standard
Fortran, there shouldn't be any problems...
-Ken
--
Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu
SLAC, P.O.Box 4349, MS 46 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-3515
-------------------------------------------------------------------------
These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
^ permalink raw reply [flat|nested] 2+ messages in thread