Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29284 Discussions

Perl script to produce module interfaces

tashker__michael
Beginner
364 Views
In accordance with Steve Lionel's mantra: "always use explicit interfaces", (search for 'Integer length issues between program and subroutine' in the forum), I've written a perl script that creates module interfaces from code. You feed it an argumentlike *.f90 and it produces, to the screen or a file, a set of interfaces for all modules it finds in the source. Surround that with an interface statement, and yer good to go.
The attached zipfile contains the .pl file and a .txt file with some notes. There are limitations, of course. (As Yogi Berra did or didn't say: "His limitations are limitless"). If you have problems (.f90 format only -- see the notes), get back to me through the forum.
0 Kudos
0 Replies
Reply