-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to implement AST nodes #2
Comments
I think there are some backend compilers for python, we just need to write the IR for them |
Those IR or bytecodes are interpreted by Python Virtual Machine. |
@gekkowrld or can we make our own codegen which generates asm code for execution? |
That is a lot of work, support for different architecture and manual optimization is pretty time consuming. Even when writing for only x86_64 architecture it would also be significant. Have you looked at the existing backend compilers yet that can do the job? |
There is a jit compiler with numba and llvm |
I'll look at those and try to write a test version. |
@AniketKumar2500 I found llvmlite but I need that the tokenizer be a bit 'better' as I'm currently working on something else. After the tokenizer I'll write the backend part. |
@gekkowrld I am working on a different kind and finding ways for efficient codegen i found a way which many compiler already do that is that they convert their code into C so whats you're ideas about it? |
not bad |
There are two ways we can implement our ast nodes
Which one should we go with.
The text was updated successfully, but these errors were encountered: