Re: [Chicken-users] Incremental compiling

2009-02-04 Thread felix winkelmann
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread William Ramsay
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread felix winkelmann
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread William Ramsay
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread John Cowan
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread William Ramsay
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

Re: [Chicken-users] Incremental compiling

2009-02-04 Thread Mario Domenech Goulart
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.

Re: [Chicken-users] chicken-primitive-inlines.scm

2009-02-04 Thread Jim Ursetto
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