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

Q ABOUT COMPILATION ORDER

WSinc
New Contributor I
321 Views
This also has some bearing on the interface discussion we are currently having.

If I am calling a routine and make changes to the interface (type of arguments, order, or number),
then how can I guarantee that the called routine gets compiled FIRST?

If I do a clean and rebuild, I need to do that so that the changes in the interface are noted BEFORE
a calling routine gets compiled. Otherwise it generates a lot of compilation errors even if I have already
made the appropriate changes to the calling routines.

One way around this problem is to have the project scanned first to assure that called routines (lowest on the tree)
gets compiled first.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
321 Views
You can't, unfortunately. The build system does not take generated interface checking into account. However, if you adopt modern Fortran programming practices and have all your routines in modules, then you'll get the benefits of the checking and the build order will be automatic.
0 Kudos
Reply