Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26734 Discussions

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

A__King
New Contributor III
200 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
Black Belt Retired Employee
195 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
Black Belt Retired Employee
196 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

Reply