Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What alternatives to Hans Boehm GC are out there for small devices? [closed]

I'd like to use a virtual machine like NekoVM into a small device but to build it, it requires Boehm GC, however there is no port of that GC to that small device so I was wondering if there is any alternative to it, something that could be done exclusively with C code?

like image 364
Paulo Lopes Avatar asked Jan 08 '09 11:01

Paulo Lopes


1 Answers

I'd say your best option would be to port the GC to your platform, for which there are instructions (libgc porting instructions).

Additionally, it should be possible to swap out the GC implementation (NekoVM FAQ), see vm/alloc.c file.

EDIT:

Hopefully useful additional links: (untested)

  • Smieciuch Garbage Collector
  • libgcroots (based on libgc 7, abstracts architecture dependant bits)
  • Squirrel programming language
like image 115
Hasturkun Avatar answered Sep 29 '22 19:09

Hasturkun