Re: Automatically transform or expand do loop in a subroutine
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Thu, 31 Jan 2008 22:12:42 +0000 (UTC)
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/
.
- References:
- Automatically transform or expand do loop in a subroutine
- From: yaqi
- Re: Automatically transform or expand do loop in a subroutine
- From: *** Hendrickson
- Re: Automatically transform or expand do loop in a subroutine
- From: yaqi
- Re: Automatically transform or expand do loop in a subroutine
- From: Thomas Koenig
- Re: Automatically transform or expand do loop in a subroutine
- From: yaqi
- Automatically transform or expand do loop in a subroutine
- Prev by Date: Re: Automatically transform or expand do loop in a subroutine
- Previous by thread: Re: Automatically transform or expand do loop in a subroutine
- Next by thread: Re: Automatically transform or expand do loop in a subroutine
- Index(es):