![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395188x1.png)
8
Specify
hostname% pc
hostname% f77 my_pascal.o my_fortran.f
Sampmain.f:
MAIN:
The
When you compile a Pascal main routine that calls FORTRAN, you must use the compiler options
You must specify
hostname% f77
hostname% pc my_fortran.o my_pascal.p
my_fortran.f:
MAIN:
You can omit the libraries if the foreign language module does not interact with the runtime environment, that is, it does no I/O, memory allocation, and so on. However, there is no overhead to linking to an unused library; therefore, always link in the appropriate runtime libraries, even if you think you may not need them.
Compatibility of Types for FORTRAN and Pascal
Table
FORTRAN and Pascal.
164 | Pascal 4.0 User’s Guide |