Pelles C forum

Pelles C => General discussions => Topic started by: kobold on January 07, 2006, 07:24:28 PM

Title: Makefiles / GC garbage collector
Post by: kobold on January 07, 2006, 07:24:28 PM
Hi!

I tried to compile the gc garbage collector, but i don't know where to start, and how should i compile that? (no ppj file  :wink: )
There are many great tools and packages out there, and compiling under linux would be no problem (some experiences, tons of manuals, makefiles), but windows?
Title: Makefiles / GC garbage collector
Post by: andre104 on January 08, 2006, 09:55:15 AM
Do you mean the Boehm gc ?
Title: Makefiles / GC garbage collector
Post by: kobold on January 08, 2006, 11:02:20 AM
Yes, this one: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Title: Makefiles / GC garbage collector
Post by: JohnF on January 08, 2006, 01:01:18 PM
Quote from: "kobold"
Yes, this one: http://www.hpl.hp.com/personal/Hans_Boehm/gc/


I made it work with lcc-win32, it should not be a problem making it work with PellesC.

edit: Try using the code from my converted version here.

http://www.johnfindlay.plus.com/lcc-win32/libs/gclib.zip

John
Title: Makefiles / GC garbage collector
Post by: andre104 on January 09, 2006, 05:48:55 AM
i once sucessfully build it using the MinGW tools
not sure if can build it using Pelles C
Title: Makefiles / GC garbage collector
Post by: TimoVJL on January 09, 2006, 08:07:53 AM
Try this, if you don't want to make it with New Project:

Extract gclib.zip from John site to gclib directory.
Open alloc.c with PellesC IDE.
Try to compile alloc.c
For "New default project", select "Win32 static library (LIB)".
With "Add files to project", add all .c files from that directory.
Rename project alloc.lib to gclib.lib
Make that project.
Close that project.
Rename alloc.ppj to gclib.ppj

This attachment is done by that way.
Title: Makefiles / GC garbage collector
Post by: kobold on January 09, 2006, 04:59:14 PM
Hm... after a some tests i got the lib.
But a test program for leak detection doesn't print out any (warning) message  :cry:
I will study the doc's...