Arc Forumnew | comments | leaders | submitlogin
2 points by stefano 6084 days ago | link | parent

If you use the Boehm GC, you can handle everything simply by calling GC_malloc every time you need memory.


1 point by sacado 6084 days ago | link

Yes, you're right. Sorry about that.

Anyway, maybe the right way to do so is by destructuring a Scheme implementation ? Starting from a given implementation, you write your compiler from scratch, but use the facilities of the chosen implementation for the reader and the GC. Then, once it's working, you gradually remove the scaffolding by implementing these things by hand...

-----