From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,255b313883432553 X-Google-Attributes: gid1164f8,public From: fairfield@sldb4.slac.stanford.edu Subject: Re: Differenc of FORTRAN Architecture ? Date: 1996/07/26 Message-ID: <1996Jul25.191649.1@sldb4.slac.stanford.edu>#1/1 X-Deja-AN: 170621396 sender: news@unixhub.SLAC.Stanford.EDU references: organization: Stanford Linear Accelerator Center newsgroups: comp.sys.dec In article , 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...