CS 3304: Comparative Languages
Implementing Subprograms
[
Course Documents
] : [
Implementing Subprograms
]
Previous
Contents
Next
Keyword Index
Implementing FORTRAN 77 Subprogs
Call Semantics:
Save the execution status of the caller
Carry out the parameter-passing process
Pass the return address
Transfer control to the callee
Return Semantics:
If pass-by-value-result is used, move current values of parameters to their corresponding actuals
If it is a function, move return value to a place the caller can get it
Restore the execution status of the caller
Transfer control back to the caller
Required Storage:
Status information of the caller, parameters, return address, and functional value (if it is a function)