Need to call a large C procedure from Pascal.....

Todd Courtois tcourtoi at jarthur.Claremont.EDU
Mon Feb 26 20:43:09 AEST 1990


I need a bit of help.  I have a main program written in Pascal, and
I have a large (20,000 line) C procedure that I would like to call
from the main program, instead of re-writing a similar procedure in
Pascal.

What do you all suggest?  Is there a way to include C source code in
a Pascal program and have it compile together?  I have access to several
different types of Pascal and C compilers, including TurboC/Pascal, 
QuickC, VAX_Pascal, etc...thus if you have a compiler-specific suggestion,
that might still be useful to me.

I have heard before that there are converters available which will convert
C to Pascal and Pascal to C, but for purposes of debugging I would prefer
not to convert the source code, since I already understand the C procedure
as written.

Thanks very much for any suggestions.  E-mail desired but not required. :)

--Todd Courtois   

tcourtoi at jarthur.claremont.edu  



More information about the Comp.lang.c mailing list