Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Community in read-only mode during platform upgrade. Learn more​>

Code coverage using ifx

Paul_Levold
Beginner
7,316 Views
Is it possible to do code coverage analysis when using the new ifx compiler? There's a guide [1] for generating code coverage data, but the compiler arguments seems to only be supported by the old ifort compiler.

[1] https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2023-0/code-coverage-tool.html
0 Kudos
24 Replies
Fran-Martinez
Beginner
214 Views

'Idiots guide' attached. A working demo solution also attached.

Cheers,

Fran

0 Kudos
Arjen_Markus
Honored Contributor II
179 Views

I applied your solution, but I guess my version of ifx is too old - it accepts the option and the library, but my program did not produce any relevant output files. What compiler version do you use? 

0 Kudos
Fran-Martinez
Beginner
161 Views

The latest version from 2026, but I know it worked with some previous versions.

0 Kudos
Arjen_Markus
Honored Contributor II
155 Views

Right, I am using 2025.3.2 at the moment. We will migrate to 2026 in a few weeks. 

0 Kudos
Reply