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

What does Intel ifort code coverage tool do to object files?

DataScientist
Valued Contributor I
562 Views

When compiling source files for code coverage, a few compiler flags must be passed, like, -prof-gen. Do these code coverage flags also change the object files in any way? In other words, can I use the generated object files during the code-coverage compilation process to link and release the target library for production?

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
557 Views

No - the object files contain calls to PGO routines that write out a file with records of which "basic blocks" of code were entered. PGO uses this for optimization, Code Coverage uses it for.. code coverage. You would not want this in production code.

View solution in original post

1 Reply
Steve_Lionel
Honored Contributor III
558 Views

No - the object files contain calls to PGO routines that write out a file with records of which "basic blocks" of code were entered. PGO uses this for optimization, Code Coverage uses it for.. code coverage. You would not want this in production code.

Reply