- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the Intel code coverage tool exclude the irrelevant preprocessing sections of a Fortran code from the final computation of the coverage percentage?
My feeling is that it apparently does not exclude the irrelevant sections from the current preprocessing compilation settings. If so, the coverage stats will falsely indicate a lack of coverage, while the code might be 100% covered for that particular preprocessing settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I misunderstood your saying "preprocessing". Code coverage is based on generated code from the compilation phase. Preprocessing just modifies the source that the compiler sees.
Information on excluding sections from coverage is here.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The code coverage tool has no idea what is "irrelevant". But I would expect that entry and exit code would always be executed. There is the ability to exclude selected portions of your code from analysis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. My impression was that the tool would be able to infer the relevant parts of a file that requires preprocessing. and in my mind, that would be done by preprocessing the file first and then passing it to the code coverage tool for analysis. I am not sure if this is really being done by the Intel codecov.
Regarding your response, could provide some keyword hints on how to exclude certain parts of the code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I misunderstood your saying "preprocessing". Code coverage is based on generated code from the compilation phase. Preprocessing just modifies the source that the compiler sees.
Information on excluding sections from coverage is here.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page