performance of internal function
问题 Is there any reason to believe that a fortran internal function would perform better than an external function? e.g. subroutine foo(x,y) real :: x x = bar(y) return contains real function bar(x) real :: x bar = x*x return end function bar end subroutine foo vs subroutine foo(x,y) real :: x real :: bar x = bar(y) return end subroutine foo real function bar(x) real :: x bar = x*x return end function bar For example, does the internal unit allow the compiler to inline that code like some sort of