Indirect calls 
Author Message
 Indirect calls

  Using MS fortran v 5.0:

Is here any method by which to invoke a subroutine or function INDIRECTLY.

That is, save the entry-point (address) in a global/saved/common variable
at some initialization step and later invoke the subroutine or function
at it's entry-point using the saved address.

It seems like some combination of LOC(), Interface statements (perhaps
with VALUE parameters), EXTERNAL statements, etc. ought to yield a working
result but so far all attempts have ended up vectoring me through address
zero:zero, presumably from initialized variables.

Any ideas ... please.

--
Jeff Sicherman
up the net without a .sig



Thu, 02 Nov 1995 17:25:09 GMT  
 Indirect calls
 >  Using MS Fortran v 5.0:
 >
 >Is here any method by which to invoke a subroutine or function INDIRECTLY.
 >
 >That is, save the entry-point (address) in a global/saved/common variable
 >at some initialization step and later invoke the subroutine or function
 >at it's entry-point using the saved address.
 >
 >It seems like some combination of LOC(), Interface statements (perhaps
 >with VALUE parameters), EXTERNAL statements, etc. ought to yield a working
 >result but so far all attempts have ended up vectoring me through address
 >zero:zero, presumably from initialized variables.

LOC(), VALUE(), %LOC(), %VAL(), etc. may work but they are nonstandard.  The
standard way of doing this is to pass the subprogram through the argument list
-- not always as conventient as a common block variable, but the functionality
is there in a standard, portable, way.  Look up the EXTERNAL statement for
more info.

Ron Shepard



Fri, 03 Nov 1995 23:37:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Q: Interfacing C/ADA: Indirect Calls

2. Indirect calls using MASM 6.1 (how?)

3. indirect call with MASM?

4. Help - indirect call

5. Indirect calls

6. indirect function calls and variable variables

7. Indirect function member calls

8. indirect function calls and variable variables

9. Question regarding indirect function calls

10. indirect **keyword calls

11. Indirect Search Pattern

12. indirect field names in replace?

 

 
Powered by phpBB® Forum Software