I have a procedure that has an assumed-shape rank-1 dummy argument.
It calls another procedure that doesn't have explicit interface, and
passes that argument to it.
I assume most compilers are clever enough to get the interface done
right. That is, they use copy-in/copy-out on the caller's side. Is
it common for compilers to generate code that suppresses taking copies
if the elements of the dummy argument are contiguous?
Now suppose nearly the same question, with rank higher than one. What's
the situation in that case?
Thanks in advance.
Best regards,
Van Snyder
--
What fraction of Americans believe | Van Snyder
Wrestling is real and NASA is fake? | [log in to unmask]
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Dan Goldin, Bill Clinton, the Pope, or anybody else.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|