Controlling code generation for performance

For optimum performance, the executable program should consist of code that can take advantage of the hardware features of the machine on which the program will run. If your program will run on the same machine as you use to compile it, code generation is not an issue. By default, the HP Fortran compiler generates code for the model of the machine on which you are running the compiler.

However, if you are compiling on a different machine from the one on which the program will run, you should use the +DAmodeloption to ensure that the compiler generates code based on the target architecture. For information about using this option, see “Compiling for different PA-RISC machines” (page 58).

106 Performance and optimization

Page 106
Image 106
HP UX Fortran Software manual Controlling code generation for performance