Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Mixed language programs Message-ID: <2215@bsu-cs.UUCP> Date: 26 Feb 88 23:47:03 GMT References: <11216@brl-adm.ARPA> <2111@chinet.UUCP> <4403@garfield.UUCP> <2727@mmintl.UUCP> <687@l.cc.purdue.edu> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 24 In article <687@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: >Telling me that what I want to do in part of my code can be done in >FORTRAN, another part in PASCAL, another part in ..., where each part >is a small number of lines, is stupid. I do not know of any way to >combine anything smaller than subroutines from different compilations... We have strayed from our punched-card heritage, which gives us all the solutions we need. Mixing languages is trivial if we simply go back to our roots, and use columns 78-80 of each card to specify which language to compile code in. //EXEC DD * JCL if i < 10 then PAS { C while (--i < (int) *++a[--j+xyz->++q]) C PERFORM ADD_ONE_TO_INPUT_RECORD COB SAY @40 "ENTER TWO NUMBERS" DB3 DO 10 J = I, 2, 100 FOR exception when INPUT_ERROR => ADA perror ("input"); C end ADA 10 CONTINUE FOR } C -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi