On the lolcode website I saw many references to various lolcode interpreters. But is there a lolcode compiler for the x86 or x86_64 architecture, that compiles directly to native machine code?
I have looked at several interpreter implementations, including Lci, lolcode.net (compiler to .NET), and lolcode interpreters in Python, Java and JavaScript. None of these do what I want.
Part of my rationale for asking is that if no such compiler exists, I may be interested in working on one, possibly by writing a LOLCODE -> C translator, and then leveraging a C compiler such as GCC to target native architectures.
Apparently there were at least two attempts of translating lolcode to LLVM bytecode
Having LLVM bytecode you can easily translate it into optimised target architecture's assembly by using for example llc and get native binaries out of it.
As a matter of fact, you can also generate JavaScript using this approach.
Have fun.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With