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

Re: Foreign Function Interface



> 
> Hello INFO-MACL.
> 
> Please subscribe me to your mailing list, Thanks.
> 
> I am using Allegro Common Lisp (Version 1.3.2) and would like to interface with
> a program written in C.  This particular program consists of over a hundred
> functions spread throughout about 40 files.  I was able to use the Foreign
> Function Interface with the examples provided, and with some small C routines
> I wrote myself, but when I try to interface with the large C program I got
> the following error during the FF-LOAD command :
> 
> >Continuable Error: Offset #x-BA20 too large to fit in a word
> >While executing: CCL::ADD-REF
> >If Continued: Truncate to fit
> 
[ ... ]
> 
> I would really appreciate it if anyone could comment on this problem,
> I'd rather not have to rewrite all that C code!!
> 

This sounds like either (1) a code segment is too large or (2) the C
program has more than 32K of global data.

Does the program link properly under the MPW linker ?  (The best test is
to specify the ".o" files to the linker in the same order that they're
specified to FF-LOAD.)

> Thank you very much.
> 
> Tara Cox
> University of Pittsburgh
> Department of Human Genetics
> E-MAIL: TARACOX@VM2.CIS.PITT.EDU
>