You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
I have taken a look at the CARP instruction set and the basic implementation.
I consider myself to be proficient in C and C++, and am volunteering to create a compiler fork/branch.
Suggestions:
Write the compiler in C++ using LLVM as a backend, allowing for maximum flexibility.
Compile CARP to C and leverage existing C compilers.
A note:
When compiling to another language, for example LLVM IR or C, due to the inherent nature of a stack VM, constant folding is trivial. At compile-time. The compiler will have to make tradeoffs between how many operations (e.g. addition, bitwise, etc.) it will do at compile time or how many it will relegate to the backend for code generation.