ppci icon indicating copy to clipboard operation
ppci copied to clipboard

Compiling and running a simple GC

Open darleybarreto opened this issue 4 years ago • 0 comments

A while ago I've found a simple gc to use on a simple LISP implementation to be compiled with ppci-cc. What is lacking on master is __builtin_frame_address(0) and set/longjmp. Do you think this gc would be an interesting example to place inside tools? I have fixes for these two (x86_64). Instead of using a builtin __builtin_frame_address, I've made changes in the inline asm to allow something like this:

long ret;
asm("mov %0, rbp": "=r"(ret) ::);
void *tos = (void*) ret;

darleybarreto avatar Feb 11 '21 18:02 darleybarreto