摘要 |
PURPOSE:To use a subroutine definition table and to couple a logical application program to an arbitrary subroutine by providing the subroutine definition table through which the application program calls subroutines. CONSTITUTION:When a prolog application program 2 uses FORTRAN subroutines A, B..., a FORTRAN subroutine definition predicate 13 is executed. Then, a subroutine name 20, a number 22 of arguments, and an argument type 23 are registered in a FORTRAN subroutine definition table 11. Next, a FORTRAN subroutine predicate 14 is executed to load the subroutine A to a FORTRAN subroutine code area 3 in a processing system. Then, the code of the subroutine A is registered at a subroutine entry point 21 of the table 11. Finally, a FORTRAN subroutine execution request predicate 15 is executed to execute the subroutine A. The processing system retrieves the entry point from the table 11 to transfer the control to the subroutine body.
|