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

Optimize across files

benh
Beginner
673 Views
Does the "optimize across files" (/Qipo options) work from the setup within the integrated Studio.NET2003 environment? It seems to compile the Fortran files individually, but the documentations seems to imply that this option has the effect of producing a single .obj file for multiple .for/.f90 files specified on the same command line with ifort.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
673 Views
Yes, it does. The .obj files are not real objects but rather they contain intermediate code. When it comes time to link, an Intel provided xilink.exe is called, and this collects all the objects and does the optimization and code generation, then calls the real linker.
0 Kudos
benh
Beginner
673 Views
Thanks for the reassurement, Steve!

I assume some similar "magic" is also applied when the Fortran code is not linked directly, but just built to a library file, which is then later linked [statically] with a C++ project?

-+-Ben-+-
0 Kudos
Steven_L_Intel1
Employee
673 Views
Yes.
0 Kudos
Reply