gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Building GCL functinoality into another C program.


From: Camm Maguire
Subject: Re: [Gcl-devel] Building GCL functinoality into another C program.
Date: 08 Jul 2003 18:55:20 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings, and thanks for your interest in GCL.  I've never seen what
you're trying to do done, but I've heard that it can be.  Any
experience on this list?  In any case, I'm reasonably confident that
you'll have a much easier time by using the (clines lisp function to
inline your C code and call from the lisp toplevel.  You might also
want to look at the comments at the top of ./lsp/littleXlsp.lsp for an
example of some lisp/C interface.

Take care,

"Rob Randall" <address@hidden> writes:

> I would like to be able to include some LISP code into a C-based program.
> When required the C program would just call up LISP routines to
> calculate some result.
> Can anyone help me with how to do this?
> 
> I have tried to do this by creating my own main routine which does
> most of the operations the standard main does, but then tries to
> directly call a C function defined via a DEFCFUN which in turn calls a
> LISP function.
> 
> I have been able to compile and link this but when the DEFCFUN-defined
> function gets called I get the error:
> 
> Caught fatal error [memory may be damaged].
> 
> Also I do no understand how the init function generated when compiling
> with :system-p t is supposed to be used.
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Rob Randall
> 
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger today!
> http://www.msn.co.uk/messenger
> 
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]