Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!slacvm!amb From: AMB@SLACVM.SLAC.STANFORD.EDU Newsgroups: comp.lang.fortran Subject: Tools for porting fortran? Message-ID: <91044.104254AMB@SLACVM.SLAC.STANFORD.EDU> Date: 13 Feb 91 18:42:54 GMT Organization: Stanford Linear Accelerator Center Lines: 17 Does anyone know of any tools that ease the problem of porting fortran code across many platforms, for code that uses extensions to Fortran77? For example, hex data statements, some keywords in open statements, etc. differ from platform to platform. e.g. a hex data statement is DATA J/Z12345678/ on VSFORTRAN (IBM) DATA J/'12345678'X/ on VAX DATA J/Z'12345678'/ on NeXT One would like only a single master file, which has statements for all platforms, and preprocessors for conditionally compiling statements on each target platform. In C, there are compiler directives (#if, #else, etc) for this. Anyone have a method, or commercial product, for doing this to fortran? Adam Boyarski, Stanford Linear Accelerator Center.