From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,84fabcbcff917e19 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-09-04 19:58:25 PST Path: gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!decwrl!pa.dec.com!e2big.mko.dec.com!jac.nuo.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.sys.dec Subject: Re: VMS on Alpha anyone? Date: 4 SEP 93 11:20:07 Organization: Digital Equipment Corporation Message-ID: <26acod$vq@jac.nuo.dec.com> References: <265k0v$i0q@nms.telepost.no> NNTP-Posting-Host: QUARK In article , 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"