mpy-tool.py - possible to map bytecode to .py file?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

mpy-tool.py - possible to map bytecode to .py file?

Post by jickster » Wed Oct 25, 2017 6:08 pm

Background

When you wanna turn a .py into compiled code - .mpy - you use mpy-cross.exe.
Then, you can create frozen code from those .mpy using tools/mpy-tool.py; the output is a c-file with the decompiled .mpy in a C-array of bytes.

Issue
It would be REALLY nice if on each line of the c-array there were a c-comment containing the python statement that a given range of byte-codes is executing.

Where would I submit these ideas for improvements at this url?

https://github.com/micropython/micropython/issues

Post Reply