Compiling Fortran Programs
The xlf command compiles XL Fortran source files. It also processes assembler source files and object files. Unless the -c option is specified, it calls the linkage editor to produce a single object file. The names of input files indicate:
- .f suffix: Fortran source file
- .o or .a suffix: object file for ld command
- .s suffix: assembler source file.
- .F suffix: Fortran source file with cpp preprocessor directives
Compiling C Programs
The cc, xlc, and c89 commands compile XL C source files. These commands are the same except for the default language level. For cc the default language level is "extended". For xlc and c89 the default language level is "ansi". These commands also process assembler source files and object files. Unless the -c option is specified, these commands call the linkage editor to produce a single object file. Input files can be any of the following:
- file name with .c suffix: C source file
- file name with .i suffix: preprocessed C source file
- file name with .o suffix: object file for ld command
- file name with .s suffix: assembler source file
Compiling C++ Programs
The xlC and related commands compile C and C++ source files.
They also processes assembler source files and object files. Unless the
-c option is specified, xlC calls the linkage editor to produce a
single object file. Input files may be any of the following:
- file name with .C suffix: C++ source file
- file name with .i suffix: preprocessed C or C++ source file
- file name with .c suffix: C source file
- file name with .o suffix: object file for ld command
- file name with .s suffix: assembler source file
We also have the GNU C/C++ compiler for users who prefer it over the default. Simply type in the command "gcc" to use the compiler.
|