NO

Author Topic: Makefiles / GC garbage collector  (Read 4483 times)

kobold

  • Guest
Makefiles / GC garbage collector
« 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?

andre104

  • Guest
Makefiles / GC garbage collector
« Reply #1 on: January 08, 2006, 09:55:15 AM »
Do you mean the Boehm gc ?

kobold

  • Guest
Makefiles / GC garbage collector
« Reply #2 on: January 08, 2006, 11:02:20 AM »

JohnF

  • Guest
Makefiles / GC garbage collector
« Reply #3 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

andre104

  • Guest
Makefiles / GC garbage collector
« Reply #4 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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Makefiles / GC garbage collector
« Reply #5 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.
May the source be with you

kobold

  • Guest
Makefiles / GC garbage collector
« Reply #6 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...