Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!news.sei.cmu.edu!cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!uunet!sparky!kwiudl.kwi.com!netcomsv!netcomsv!ix.netcom.com!netcom.com!dcf
From: dcf@netcom.com (Don Ferguson)
Subject: Re: Natural Language Processing and C in Unix
Message-ID: <dcfCx7o1n.KwH@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
X-Newsreader: TIN [version 1.2 PL1]
References: <tp913452.781252158@lemon>
Date: Wed, 5 Oct 1994 17:46:34 GMT
Lines: 13

Michal Szalinski (tp913452@lemon.canberra.edu.au) wrote:
: ...., but the main body of the program will be written
: in C in a unix environment. Now, does anyone have any idea how to link
: prolog and C programs in unix? How to compile them together to make one
: binary? 

Quintus Prolog, available on the major Unix platforms, has an excellent
C interface (Prolog calling C, and C calling Prolog), and a runtime generator
for building stand alone executables.  There are some limits to the C
interface (for example, I don't believe you can have nested calls from C
into Prolog, e.g. C function calls a Prolog predicate which calls a C function
which calls a Prolog predicate).  In other words, the interface from C to
Prolog is not reentrant.  This may not matter for your application.
