Re: MODULEand USE versus Argument Passing
- From: Duane Bozarth <dpbozarth@xxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 09:16:18 -0500
"Herman D. Knoble" wrote:
>
> Given a Subprogram that gets called millions of times,
> we know that there is (CPU) overhead for subprogram linkage.
>
> My question is, independent of compilers, which is more efficient
> in practice:
>
> passing a list of (say 3 to 10) arguments to a subprogram's
> corresponding parameters,
> OR using a Module and companion USE statement,
> OR use named COMMON?
If by (b) you mean the variables which would otherwise be in the
argument list, I see no reason there would be any difference between (b)
and (c). (a) would entail some level of overhead.
How much it affects a given routine would be pretty easy to time for a
specific example.
.
- References:
- MODULEand USE versus Argument Passing
- From: Herman D . Knoble
- MODULEand USE versus Argument Passing
- Prev by Date: MODULEand USE versus Argument Passing
- Next by Date: Re: MODULEand USE versus Argument Passing
- Previous by thread: MODULEand USE versus Argument Passing
- Next by thread: Re: MODULEand USE versus Argument Passing
- Index(es):
Relevant Pages
|
|