Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@quark.enet.dec.com (Steve Lionel)
Subject: Re: VMS on Alpha anyone?
Date: 4 SEP 93 11:20:07	[thread overview]
Message-ID: <26acod$vq@jac.nuo.dec.com> (raw)
In-Reply-To: CCswuL.6B8@sdr.slb.com


In article <CCswuL.6B8@sdr.slb.com>, lovell@sdr.slb.com (John Lovell) writes...
> 
>Codes will blindly recompile but you should probably use the flag 
>/assume = "dummy_aliases" to get the right answer (if you HAVE dummy aliases
>(you probably do) and you use the default /assume = "no_dummy_aliases" 
>then you get REALLY tricky bugs to debug, especially if you use complex 
>numbers!!)
> 
Well, actually, most applications don't have dummy aliases.  This is when
you do something like this:

	CALL FOO (A,A)
	...
	SUBROUTINE FOO (X,Y)
	...

The compiler wants to assume that modifications to one variable don't
modify others (unless it can see the dependence via EQUIVALENCE) - the
FORTRAN-77 standard forbids aliasing between arguments and between 
arguments and COMMON variables.   By assuming that the standard rules
are being followed, which in most cases is true, the compiler has many
more optimization opportunities open to it.  This assumption is also the
case in the VAX compiler as of V6; prior to that, the compiler didn't do
any optimization of arguments (or COMMON variables).

Nit: the spelling of the keyword is NODUMMY_ALIASES.  This can be specified
in an OPTIONS statement if you determine that your program depends on
this setting to work.

>The FORTRAN has a whole ton of new stuff that I haven't tried yet, the most 
>interesting to me, however, seems to NOT work. You can now open files with 
>CONVERT="little_endian" or CONVERT="big_endian" or whatever you want to read 
>in UNFORMATTED binary files from other architectureses (e.g. that you want 
>to copy over to an SGI to spin and plot in 3D). Sadly, the VMS representation 
>of "little_endian" writes 4096 in binary as 00000000, which is a shame. But 
>if the developers at DEC believe this to be true, it might explain why DEC 
>keeps insisting on big_endian formats... *smile*.
> 
We've fixed a number of bugs in the CONVERT support since V6.0 (one of which
is that the convert code was ALWAYS being called, even if the external and
internal formats were the same, resulting in horrible I/O performance!)  
Unfortunately, I can't get at my AXP system right now to try your example,
but I'm pretty confident that it works properly now.  (Incidentally, I 
assume you DO know that Digital uses little-endian and that SGI, for
example, uses big-endian.)

This feature is also available in DEC Fortran for OpenVMS VAX.  We also
had some bugs there in the initial V6.0 release - these were all quickly
fixed, and as far as I know (and I wrote a bunch of rather extensive tests
to make sure), the VAX implementation is now correct.  Other formats
available are Cray, IBM System\370, VAX-FD and VAX-FG.  (Soon to be
expanded to include conversion between VAX H and a 128-bit IEEE format.)

If you're using this feature and encounter problems, please make sure
you have the most current version of the compiler and RTL.  On VAX,
V6.0-10 and later is fine.  On AXP, V6.1 is current.

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"


  reply	other threads:[~1993-09-04 15:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-02 20:11 VMS on Alpha anyone? Tor Arntsen
1993-09-03 13:18 ` Ken Cowan
1993-09-03 14:01   ` finger
1993-09-03 15:08 ` Steve Lionel
1993-09-03 23:20 ` John Lovell
1993-09-04 15:20   ` Steve Lionel [this message]
1993-09-04 21:52     ` John Lovell
1993-09-05  2:56 ` Fred Velijanian
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