Download Intel Fortran Compiler for Linux* Systems User's Guide
Transcript
Intel® Fortran Compiler for Linux* Systems User’s Guide Vol II The compiler assumes that when -ip is on, any externally visible function might be preempted and therefore cannot be inlined. Currently, this means that all Fortran subprograms, except for internal procedures, are not inlinable when -ip is on. However, if you use -ipo and -ipo_obj on a file-by-file basis, the functions can be inlined. See Compilation with Real Object Files. Controlling Inline Expansion of User Functions The compiler enables you to control the amount of inline function expansion, with the options shown in the following summary. Option -ip_no_inlining -inline_debug_info -ip_no_pinlining Effect This option is only useful if -ip or -ipo is also specified. In this case, ip_no_inlining disables inlining that would result from the -ip interprocedural optimizations, but has no effect on other interprocedural optimizations. Preserve the source position of inlined code instead of assigning the call-site source position to inlined code. Disables partial inlining; can be used if -ip or -ipo is also specified. Inline Expansion of Library Functions By default, the compiler automatically expands (inlines) a number of standard and math library functions at the point of the call to that function, which usually results in faster computation. However, the inlined library functions do not set the errno variable when being expanded inline. In code that relies upon the setting of the errno variable, you should use the -nolib_inline option. Also, if one of your functions has the same name as one of the compiler-supplied library functions, then when this function is called, the compiler assumes that the call is to the library function and replaces the call with an inlined version of the library function. So, if the program defines a function with the same name as one of the known library routines, you must use the -nolib_inline option to ensure that the user-supplied function is used. -nolib_inline disables inlining of all intrinsics. 92