Hello,
I am new to Micropython. Is there a way to bypass the interpreter and generate complied machine code?
I want to run the micropython script to develop and test my logic coding, but also want to regain the speed by running un-interpreted machine code. Maybe this isn't possible, but thought I would ask...
Thanks,
Nick
assembly / compile
Re: assembly / compile
No, not in general. On Pyboard you can use decorators to generate faster code (viper), which is translated into machine code) or even use assembly code, at least a subset of that. See also this section of the documentation: http://docs.micropython.org/en/latest/r ... ython.html
http://docs.micropython.org/en/latest/p ... mbler.html
http://docs.micropython.org/en/latest/r ... 2_mov.html
That allows you to mix python code to handle complicated data structures and use machine code for speed.
http://docs.micropython.org/en/latest/p ... mbler.html
http://docs.micropython.org/en/latest/r ... 2_mov.html
That allows you to mix python code to handle complicated data structures and use machine code for speed.
Re: assembly / compile
Roberthh wrote:No, not in general. On Pyboard you can use decorators to generate faster code (viper), which is translated into machine code) or even use assembly code, at least a subset of that. See also this section of the documentation: http://docs.micropython.org/en/latest/r ... ython.html
http://docs.micropython.org/en/latest/p ... mbler.html
http://docs.micropython.org/en/latest/r ... 2_mov.html
That allows you to mix python code to handle complicated data structures and use machine code for speed.
I don’t understand why the cross compiler - mpy-cross.exe - is still not able to generate machine code
Sent from my iPhone using Tapatalk Pro