summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/filesystem.rst
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-31 00:17:38 +1000
committerDamien George <damien@micropython.org>2022-06-07 13:51:45 +1000
commit599a22e56975a1a0d753eae5fd1432d4a85c5189 (patch)
treeca4ffa3b497526c385ba10f2e8ef532cfa3b4e3a /docs/esp8266/tutorial/filesystem.rst
parentf506bf342af5994a2b8aa0f005e2a8fbf06b60b5 (diff)
tools/mpy-tool.py: Rework .mpy merging feature.
Now that the native qstr link table is gone, merging a native .mpy file with a bytecode .mpy file is not as simple as concatenating the .mpy data. The qstr_table and obj_table tables from all merged .mpy files must now be joined together, because they are global to the .mpy file (and hence global to the merged .mpy file). This means the bytecode needs to be be decoded, qstr_table and obj_table indices updated to point to the correct entries in the new tables, and then the bytecode re-encoded. This commit makes this change to the merging feature in mpy-tool.py. This can now merge an arbitrary number of bytecode .mpy files, and up to one native .mpy file. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial/filesystem.rst')
0 files changed, 0 insertions, 0 deletions