Compiling scripts into standalone .exe files
Compiling scripts into standalone .exe files
Is there a way to compile standalone .exe files for Windows with MicroPython as interpreter of choice? Something similar to PyInstaller / Py2exe but with MicroPython?
Re: Compiling scripts into standalone .exe files
Maybe someone has any ideas?
Re: Compiling scripts into standalone .exe files
I'm not aware of any tools which currently do this, although since frozen byte code works, it's probably not too difficult to do with the unix or windows version.
Re: Compiling scripts into standalone .exe files
Thank you! Will look into it. On the side note, is there any way to inspect Micropython's bytecode? Like dis module in Python 2/3?dhylands wrote:I'm not aware of any tools which currently do this, although since frozen byte code works, it's probably not too difficult to do with the unix or windows version.
Re: Compiling scripts into standalone .exe files
I'm pretty sure that there isn't anything right now to do bytecode disassembly.
The code is in MicroPython (can be enabled), but nothing available in a convenient form. The current code (with the right debug stuff enabled) can dump bytecode for bytecode that was just compiled, but not for arbitrary bytecode.
@Damien helped me to write this: https://github.com/dhylands/upy-example ... te_code.py which reaches in and pulls out the natice code (which I could then disassemble externally).
The code is in MicroPython (can be enabled), but nothing available in a convenient form. The current code (with the right debug stuff enabled) can dump bytecode for bytecode that was just compiled, but not for arbitrary bytecode.
@Damien helped me to write this: https://github.com/dhylands/upy-example ... te_code.py which reaches in and pulls out the natice code (which I could then disassemble externally).