Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29302 Discussions

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

DataScientist
Valued Contributor I
1,147 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
1,142 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
1,143 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