4. Embedded QUEL for Fortran : Precompiling, Compiling, and Linking an EQUEL Program : Generating an Executable Program : The Fortran Compiler
 
Share this page                  
The Fortran Compiler
The preprocessor generates Fortran code. The generated code is in tab format, in which each Fortran statement follows an initial tab. (For information on the EQUEL format acceptable as input to the preprocessor, see EQUEL Statement Syntax for Fortran.)
UNIX: You must use the f77 command to compile this code. You can use most of the f77 command line options. If you use the -i2 flag to interpret integer and logical declarations as 2-byte objects, you must have run the EQUEL/Fortran preprocessor with the -i2 flag.
The following example preprocesses and compiles the file "test1". The EQUEL/Fortran preprocessor assumes the default file extension ".qf".
$ eqf test1
$ f77 test1l.f 
VMS: You should use the VMS fortran command to compile this code. You can use most of the fortran command line options. If you use the noi4 qualifier to interpret integer and logical declarations as 2-byte objects, you must have run the EQUEL/Fortran preprocessor with the -i2 flag. You must not use the g_floating qualifier if floating-point values in the file are interacting with Ingres floating-point objects. Note, too, that many of the statements that the preprocessor generates are nonstandard extensions provided by VAX/VMS. You should not attempt to compile with the nof77 qualifier, which requires compatibility with Fortran-66.
The following example preprocesses and compiles the file "test1". The EQUEL/Fortran preprocessor assumes the default file extension ".qf".
$ eqf test1
$ fortran/list testl 
Windows: Use the Windows df command to compile this code. The following compile options are required for Windows:
/name:as_is
Treats uppercase and lowercase letters as different
/iface:nomixed_str_len_arg
Requests that the hidden lengths be placed in sequential order at the end of the argument list
/iface:cref
Specifies that names are not decorated, the caller cleans the call stack and var args are supported
If you use the /integer_size:16 qualifier to interpret integer and logical declarations as 2-byte objects, you must have run the Fortran preprocessor with the -i2 flag.
The following example preprocesses and compiles the file "test1." The Embedded SQL preprocessor assumes the default extension:
esqlf test1
df /compile_only /name:as_is /iface:nomixed_str_len_arg /iface:cref test1 
Note:  Check the Readme file for any operating system specific information on compiling and linking EQUEL/Fortran programs.