I am curious, is there a way to implement a codegen that converts non-haxe code to Hashlink? I mean is there a class or tool like LLVM IR generator or an assembler that I can utilize to convert another code to Hashlink Bytecode?
Not sure if there’s an easy way to convert the bytecode to C though, but I imagine something could be done in the compiler to support that, @ncannasse surely can say more about that.
Thanks @nadako I have already gone through these articles before. But truth is, my general knowledge of compilers and code generators aren’t sharp enough. I was thinking there would be a ready made tool to generate Hashlink IR which would then be run inside the Hashlink VM itself, and even better generate C code.
I am hoping a good Samaritan in the community can come up with a solution.