C PASCAL INTERFACE

Seth Olitzky seth at wet.UUCP
Sat Mar 30 06:37:31 AEST 1991


In article <2941 at cod.NOSC.MIL> vtran at cod.NOSC.MIL (Viet D. Tran) writes:
>
>I have programs that were written in two different languages, Pascal
>and C.  Now, I am having trouble combining them together, or linking
>them in the compiling process (using either Pascal or C compiler) to
>make only one executable file.  If anyone knows how to do mixed language
>programs with Pascal and C (such as C and In Line Assembly), or has any
>other suggestions, please let me know.  Thanks.      

A lot depends on what compilers and target machine you are using.  Borland
pascal TPU are not compatible with Borland C objects.  You will need to 
have two compilers from the same vendor such as the Microsoft C and Pascal
compiler or possible the Jensen (JPI) family of compilers.

Be very careful when using library calls as this can pull in lots of stuff.
The problem with mixing code is that you might pull in identical functions
from two different libraries and create an unnecessarily large program.
.

-- 
-----------------------------------------------------------------------------
Seth Olitzky             seth at wet
         ...!sun!hoptoad!wet!seth
----------------------------------------------------------------------------



More information about the Comp.lang.c mailing list