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

Support compilation to object files #21

Open
0xekez opened this issue Dec 16, 2020 · 1 comment
Open

Support compilation to object files #21

0xekez opened this issue Dec 16, 2020 · 1 comment
Labels
Compiler 🐅 Related to the compiler enhancement New feature or request

Comments

@0xekez
Copy link
Owner

0xekez commented Dec 16, 2020

Having a JIT is nice and makes testing pretty easy but at the end of the day the ability to compile to native object files is very important to me because it opens up the possibility of writing a self hosting version of Lust (this is very far down the line though.)

A branch of the simple jit demo shows approximately how this is done. Based on this I don't believe that doing this will require too much additional work as the architecture seems to be similar enough.

@0xekez
Copy link
Owner Author

0xekez commented Jan 27, 2021

This would help with the compilation slowdown that we see related to #18. If we could just compile all of the builtins as part of a lust installation and link them in that would remove the performance penalty that we suffer as a result of needing to compile all of them on every program run.

@0xekez 0xekez transferred this issue from another repository Feb 2, 2021
@0xekez 0xekez added Compiler 🐅 Related to the compiler enhancement New feature or request labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler 🐅 Related to the compiler enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant