[Info-vax] Architecture specific code in VMS Fortran
Tom Wade
nospam at tomwade.eu
Sat Oct 1 12:56:14 EDT 2011
Hello,
I've checked out the HP Fortran manuals for compiler directives in code that can select based on the
architecture (VAX/Alpha/IA64). It seems the CDEC$ IF DEFINED stuff is the way to go, but although
it describes how to define and test variables, I can't see a list of predefined variables such as
the current architecture. I want to do something like
CDEC$ IF DEFINED (VAX)
<code to be compiled only if on VAX>
CDEC$ ENDIF
Any small examples ?
Thanks
Tom Wade
More information about the Info-vax
mailing list