Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling and running a simple GC #125

Open
darleybarreto opened this issue Feb 11, 2021 · 0 comments
Open

Compiling and running a simple GC #125

darleybarreto opened this issue Feb 11, 2021 · 0 comments

Comments

@darleybarreto
Copy link
Contributor

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant