I just found out, that you can write inline assembler.
I start to like it.
wtf main.py and boot.py empty?!
Re: wtf main.py and boot.py empty?!
You may also look at the viper code emitter. According to my experience, the generated assembler code is about twice as long as assembler code you would write, and takes twice the time, but is still way faster than bytecode, and you can use symbolic variables and the control structures of Python, like loops, if's, ... So you can decide to use viper for complex code and assembly for simply code needing the highest speed. I used that approach in my SSD1963 driver in the file TFT_io.py: https://github.com/robert-hh/SSD1963-TF ... or-PyBoard
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: wtf main.py and boot.py empty?!
Other examples of inline assembler may be found in these digital filter scripts.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.