Open ncw opened 5 years ago
Yes avo
could certainly be extended to support this use case.
At the moment the instruction database doesn't have the instruction encodings in it, but that information is present in the Opcodes database I started with. So I could augment the instruction database and then implement an assembler in avo
. (See #23 for more on the instruction database.)
By the way, have you seen https://github.com/twitchyliquid64/golang-asm ? It might also be possible to pursue a similar approach in avo
.
I was certainly aware of this use case (asmjit and PeachPy support it) but it wasn't my priority. It's still not something I intend to work on in the short term, but I'll keep this issue open and hopefully I'll have time one of these days :)
It would be great to have a JIT option in Avo. Meanwhile, this could be a useful alternative: https://github.com/bspaans/jit-compiler
I'd like to be able to use avo to generate code from a go program into memory which I can call directly from the same program. Think implementing a JIT for instance.
Could that be possible one day?