On Tue, Feb 3, 2009 at 10:12 PM, William Ramsay ramsa...@comcast.net wrote:
Hi all,
Is there a way to do incremental compiling in Chicken?My program is
getting quite large and has a lot of include files involved. How do you go
from csc -vk foo.scm to
gcc test.c -o foo.o -c
I put my list of files into a Makefile using the same code you gave
below. Make runs through each file and compiles it to an object file
with no problem at all. However, when I try to link it all together with
csc -o foo a.o.b.o.c.o
I get all sorts of errors for multiple definitions of
On Wed, Feb 4, 2009 at 2:49 PM, William Ramsay ramsa...@comcast.net wrote:
I put my list of files into a Makefile using the same code you gave below.
Make runs through each file and compiles it to an object file with no
problem at all. However, when I try to link it all together with
csc -o
I think I'm getting closer - BUT
When I do this:
Please compile each file with -unit unitname or use (declare
(unit unitname))
in the mentioned files. The main program should then use these libraries with
(declare (uses unitname1 ...))
It again compiles all the units correctly, but global
William Ramsay scripsit:
It again compiles all the units correctly, but global constants are not
recognized.
Right: that's because global constants are not exposed in the compiler's
output. So define them all in one short file and (include ...) that file
into each unit.
Likewise, do I need
That did the trick. I now have a Makefile that compiles a Chicken program
incrementally.
Thanks a million to Felix and John. I'm always amazed that there is
anyone
out there willing to help.I guess what I have to do now is answer
questions
that I know the answer to.And, believe it
Hi William
On Wed, 04 Feb 2009 16:36:29 -0500 William Ramsay ramsa...@comcast.net wrote:
I guess what I have to do now is answer questions that I know the
answer to. And, believe it or not, that answer list is growing.
Nice to know you are getting useful feedback to answer your questions.
On Mon, Feb 2, 2009 at 12:07 PM, Kon Lovett klov...@pacbell.net wrote:
(##sys#slot l 1) - (%cdr l)
(##sys#setslot l 1 x) - (%set-cdr l x)
I was wondering. The compiler already inlines primitives when
usual-integrations is in effect. Would it not be possible to tell it,
with a new