Re: Automatically transform or expand do loop in a subroutine
- From: Louis Krupp <lkrupp@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 03:24:54 -0700
yaqi wrote:
Hi All,
I knew following piece of code will not be compiled, at least with
Compaq Visual Fortran. My intention of this code is to let the
compiler automatically transform or expand the loop inside the
function (I do not care the code size) if the caller has a SMALL
CONSTANT integer 'd' in its argument list when the compiler is doing
optimization. Because the function is really crucial for the
performance, I want to save computing time as much as I can. So do not
ask me why I want to do this.
I know the unrolled loop will be faster, but have you tested variable vs. constant loop limits to see if the difference is enough to make it worth the trouble?
Louis
.
- References:
- Prev by Date: Re: Automatically transform or expand do loop in a subroutine
- Next by Date: Re: Did anyone manage to get MATRAN compiled with g95?
- 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):
Relevant Pages
|