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

Finding connected code

NotThatItMatters
Beginner
261 Views

I have a solution with two projects which has undergone an overhaul.  None of the original code for the project has been deleted, but there would appear to be code which is superfluous.  Are there any tools, Intel or third party, which would let me know which code is connected to the PROGRAM within each project?

0 Kudos
1 Reply
Steve_Lionel
Honored Contributor III
261 Views

The Code Coverage tool, when the program is run with a test input, would highlight unused code. Some of it may be legitimate (error cases, etc.) but it would help you identify code not in use. You can read about it at https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-code-coverage-tool

 

0 Kudos
Reply