How to generate and run native code dynamically?

前端 未结 7 554
死守一世寂寞
死守一世寂寞 2020-12-04 08:33

I\'d like to write a very small proof-of-concept JIT compiler for a toy language processor I\'ve written (purely academic), but I\'m having some trouble in the middle-altitu

7条回答
  •  萌比男神i
    2020-12-04 09:20

    Youmay want to have a look at libjit which provides exactly the infrastructure you're looking for:

    The libjit library implements just-in-time compilation functionality. Unlike other JITs, this one is designed to be independent of any particular virtual machine bytecode format or language.

    http://freshmeat.net/projects/libjit

提交回复
热议问题