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

Get list of functions/subroutines

chuckhp
Beginner
1,240 Views
Is there a way to get a list of all the functions and subroutines in a fortran source file using the IVF IDE? I am used to using emacs, where I can easily get a drop down list of all the functions and subroutines and go to any one of them by just selecting one of them. I thought I would be able to do this with the Object Browser, but it looks like that only works for C projects. It is greyed out whenever I have a fortran project opened. Why doesn't that work for fortran projects as well?
0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,241 Views
Not at present. Still on our wish list.
0 Kudos
g_f_thomas
Beginner
1,241 Views

Perhaps I'm out to lunch in more sense than one but what's wrong with the IDE's Solution Explorer?

I agree that a functioning Object Browser would be a boon to Fortran programming. I'd put it on the top of the wish list.

Gerry

0 Kudos
chuckhp
Beginner
1,241 Views
The solution explorer is great, but it only lets you see the files within each project, not the functions and subroutines within any one of those files (unless I am missing something). I have certain files that contain hundreds of subroutines (organized as a module) within that one file. I would like the ability to jump to the point in that source file where that particular function or subroutine is first defined. In emacs, I could do that by using imenu. For now, I can still do that in a roundabout way by right clicking on the file in the Solution Explorer and then selecting Open With... emacs. It's just that it would be much better if the built-in editor could do it automatically. I'm glad to hear that it is on a wish list somewhere. Hopefully, with a little prodding, we can push it higher up on that wish list ;-) It would make an already great IDE even better.
0 Kudos
Steven_L_Intel1
Employee
1,241 Views
The search feature helps with this for now. You can search all the files in the solution for a routine name and find all the places it is mentioned or defined. You can then click on the search result to open the file to the right line.
0 Kudos
g_f_thomas
Beginner
1,241 Views

That's what many VS users do, even to scan an entire disk partition. I just started using Notepad++, a replacement for Windows Notepad available at

http://notepad-plus.sourceforge.net/uk/site.htm

It has Fortran support. Its interface displays all the functions of a module in alphabetical order and by clicking on an item in the list you're there, somewhat likeselecting from the Index tab in Windows HTML.

Gerry

0 Kudos
Reply