I have modules that reference each other. Is there any way to do this; e.g., pre-compiled modules? My desired code sequence would have the following pattern:
- module M1 source. This uses module M1, references subroutine S2, and contains array A1. All objects are public.
- module M2 source. This uses module M1, contains subroutine S2, and references array A1. All objects are public.
- main program P source. This uses modules M1 and M2 and references subroutine S2 and array A1.
I suspect this will not compile (if I do it in one step) because of the circular references; so, I did not try it. How about the following approach?
- Compile M1 source as a separate step.
- Compile M2 source as a separate step.
- Compile P source with a command that references the pre-compiled forms of M1 and M2.