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

Program Listing query

jeraldlavassar
Beginner
1,340 Views
I recently purchased CVF 6.6B and am trying to compile an existing program. When I did this more than a decade ago in a mainframe environment (IBM's VS Fortran), I could request a program listing that among other things generated a Symbol Cross Reference Dictionary. This included the Name of my variables, their Mode (Real*4, etc), where they were declared and all references to each variable.

Is there an equivalent function in CVF6.6B?

Thanks for any help.

Regards,

Jerald
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,340 Views
You can get a listing file that names your variables, but not including a cross-reference. Select Source Listing under Project..Settings..Fortran..Listing Files.

CVF does include a feature called Source Browser, which allows you to find declarations and uses of variables and routines across your entire application. To enable this, select Tools..Source Browser. It will ask you to allow changes to the settings and do a rebuild, select OK. When the rebuild is done, and the Source Browser dialog comes up, uncheck the "case-sensitive" box.

Now you can either type a name and ask for definitions and references, or right-click on a name in the source window and find definitions and references.

Steve
0 Kudos
durisinm
Novice
1,340 Views
I've used VS Fortran, and I agree with Jerald that the listing he is describing would be a very useful thing for the merged Intel Visual Fortran product to have. I believe that DEC Fortran for VMS produced a similar kind of listing.

I'm certainly used to doing a lot of work at a computer screen these days, but some tasks just work better with things printed on paper--at least they do for me. Having a cross-referenced listing for debugging to supplement the interactive debugger would be great. A colorized X-refed listing would be the ultimate. Listings on paper are something you can give to another person who doesn't have the compiler on his computer, and they beat viewing the source with something like Notepad by a mile.

I know that the Intel team has a long list of must-dos to accomplish, but this is a worthwhile enhancement to implement if you can find the time.

Mike
0 Kudos
Steven_L_Intel1
Employee
1,340 Views
Trust me - this has been on our own wish list for a long time. But right now, we just don't have the resources to implement it. Perhaps once Intel Visual Fortran ships, we'll have some breathing room and be able to get it in.

Steve
0 Kudos
Reply