Re: Automatically transform or expand do loop in a subroutine



In article <6cdc8919-835a-4e38-8041-e96dd826f93e@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
yaqi <yaqiwang@xxxxxxxxx> writes:



gfortran does not incline the function call. What happened?


You moved the contained function outside of the main program.
At the moment, gfortran can only inline contained subprograms.

Thomas' code looks like

program main

contains

integer function ad(c,d)
end function ad

end program main


Your code looks like

program main

end program

integer function ad(c,d)

end function ad

There is a rather large bucket of options available for GCC.
Try scanning gcc.info for occurences of -fprofile-* and -fwhole-*

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.


Quantcast