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!

Finding connected code

NotThatItMatters
Beginner
104 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
Black Belt Retired Employee
104 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

 

Reply