Intel® Fortran Compiler for Linux* - Can I Invoke fpp from the command line?

The Intel® Fortran preprocessor included with the compiler can be called directly from the command line, invoked from the ifort command, or invoked from the Microsoft Visual Studio IDE.To use the Fortran Preprocessor from the command line via the ifort compiler driver, call the preprocessor using the Intel Fortran compiler with the -fpp (Linux* or Mac* OS) or /fpp (Windows) compiler option (e.g.: ifort -fpp -c foo.f). By default, the specified files are then compiled and linked. To retain the intermediate (.i or .i90) file, specify the -save-temps (Linux and Mac OS) or /Qsave_temps (Windows) option.

  • On the command line, use the FPP command. In this case, the compiler is not invoked. When using the FPP command line, you need to specify the input file and the intermediate (.i or .i90) output file. For more information, type FPP/HELP on the command line.
  • In the Microsoft* Visual Studio* IDE, set the Preprocess Source File option to Yes in the Fortran Preprocessor Option Category. To retain the intermediate files, add /Qsave_temps to Additional Options in the Fortran Command Line Category. Please see Using the FPP Preprocessor section of the Compiler Documentation for more details.
For more complete information about compiler optimizations, see our Optimization Notice.