Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28951 Discussions

ifort/ifx: Emit preprocessor output and compilation output in a single invocation

Erbic
Beginner
132 Views

I am using ifort on the command line on Windows 10. Here are the relevant flags:

This will pre-process and compile myfile.f90 and emit myfile.obj:

ifort -fpp -compile-only -object:myfile.obj myfile.f90

 

This will pre-process myfile.f90 and emit the pre-processed file to stdout, but it will NOT emit myfile.obj:

ifort -fpp -E -compile-only -object:myfile.obj myfile.f90

Is there some combination of flags that will allow me to emit both the pre-processed file and the object file in a single invocation?

Labels (2)
0 Kudos
0 Replies
Reply