Generating machine code at runtime with MicroPython (sometimes called JIT)
Posted: Sun Oct 21, 2018 8:03 pm
Here's some code I wrote as an Xmas project 2014/2015 (celebrating MicroPython's first year), exploring/learning about Tracing JIT. It's just very simple class to generate and execute machine code with MicroPython. Roughly speaking, it's prototype of what MicroPython does using @micropython.native/@micropython.viper decorators do, except those are implemented in C, so nobody besides @dbpeorge now how they work and how to extend/improve them. This implementation is on the other hand in Python, so would be easy to hack on.
All this time it sat in my working dir, so I decided to brush it up a bit and push on github, to serve as yet another example of what/how can be done with MicroPython.
https://github.com/pfalcon/micropython-jitgen
All this time it sat in my working dir, so I decided to brush it up a bit and push on github, to serve as yet another example of what/how can be done with MicroPython.
https://github.com/pfalcon/micropython-jitgen