Re: C_F_POINTER, aliasing and performance
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Fri, 9 Feb 2007 08:40:08 -0800
Jugoslav Dujic <jdujic@xxxxxxxxx> wrote:
Note that copy-in/copy-out, in practice, can occur only with assumed-size
dummies
and explicit shape. That is a very important case, as much f77 code uses
it. In fact, all f77 code uses either explicit shape or assumed size,
those being the only two options then. That's even one way to remember
the rule; it is no coincidence.
(while compiler, in theory, might be smart enough to employ it
with assumed-shape if it's more efficient, I doubt any does it, so let's
put that aside).
Yes, there exist compilers that can do copy for assumed shape. The NAG
compiler has done so for ages, for example. However, it tends to be
controlled by a user-specified switch, rather than having the compiler
try to figure out when it might be beneficial.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- References:
- C_F_POINTER, aliasing and performance
- From: Sebastian Hanigk
- Re: C_F_POINTER, aliasing and performance
- From: Walter Spector
- Re: C_F_POINTER, aliasing and performance
- From: Sebastian Hanigk
- Re: C_F_POINTER, aliasing and performance
- From: Walter Spector
- Re: C_F_POINTER, aliasing and performance
- From: Sebastian Hanigk
- Re: C_F_POINTER, aliasing and performance
- From: Jugoslav Dujic
- C_F_POINTER, aliasing and performance
- Prev by Date: Re: Error in decimal places?
- Next by Date: Re: format of unformatted file??
- Previous by thread: Re: C_F_POINTER, aliasing and performance
- Next by thread: Use of EPSILON () Intrinsic Function
- Index(es):
Relevant Pages
|
|