C compiler for IBM (MVS & CMS)

Herb Chong [DCS] herbie at watdcsu.UUCP
Mon Jan 21 04:33:03 AEST 1985


In article <7476 at brl-tgr.ARPA> Alan Crosswell <US.ALAN%CU20B at COLUMBIA.ARPA> writes:
>...Whether you can get this to
>work with PL/I or Fortran subroutines really depends.  I would say that if
>you know the junk required to write an Assembler main program that can call a
>PL/I or Fortran subroutine then you would be able to do it in Waterloo C
>(with some Assembler).  
>
>Alan Crosswell
>Columbia University Center for Computing Activities

If the person who asked this is using the PL/I Optmizing compiler, then
declaring the interface routine as EXTERNAL ENTRY OPTIONS(ASSEMBLER)
will use essentially what is the OS interface.  Using OPTIONS(FORTRAN)
will guarantee generating IBM's standard FORTRAN linkage convention
used by all their OS FORTRAN products.  Calling a PL/I program is
somewhat messier as the PL/I runtime environment needs to be
established so that PL/I can perform error recovery.  This is
documented in the Programmer's Guide for PL/I.  You should use the
FORTRAN calling sequence from CW and tell PL/I that it is being called
by a FORTRAN program.

Herb Chong, BASc
Computer Consultant 

I'm user-friendly -- I don't byte, I nybble....

UUCP:  {decvax|utzoo|ihnp4|allegra|clyde}!watmath!water!watdcsu!herbie
CSNET: herbie%watdcsu at waterloo.csnet
ARPA:  herbie%watdcsu%waterloo.csnet at csnet-relay.arpa
NETNORTH, BITNET: herbie at watdcs, herbie at watdcsu
POST:  Department of Computing Services
       University of Waterloo
       N2L 3G1  (519)885-1211 x3524



More information about the Comp.unix mailing list