wtf and empty?!

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Posts: 10
Joined: Sat Nov 10, 2018 1:23 pm

Re: wtf and empty?!

Post by NikolaiE » Mon Nov 12, 2018 7:38 pm

I just found out, that you can write inline assembler.

I start to like it.

User avatar
Posts: 2282
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: wtf and empty?!

Post by Roberthh » Mon Nov 12, 2018 8:18 pm

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 ... or-PyBoard

User avatar
Posts: 4796
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: wtf and empty?!

Post by pythoncoder » Thu Nov 15, 2018 9:17 am

Other examples of inline assembler may be found in these digital filter scripts.
Peter Hinch

Post Reply