Damien George
6a11048af1
py/persistentcode: Bump .mpy version due to change in bytecode.
8 years ago
Damien George
98458a46ec
tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.
With caching of map lookups in the bytecode, frozen bytecode can still
work but must be stored in RAM, not ROM. This patch allows mpy-tool.py to
generate code that works with this optimisation, but it's not recommended
to use it on embedded targets (because of lack of RAM).
8 years ago
Damien George
7df9291b6c
py: Update opcode format table because 3 opcodes were removed, 1 added.
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has
been added in adaf0d865c
.
8 years ago
Damien George
c51c883cc8
tools/mpy-tool.py: Support freezing of complex numbers.
8 years ago
Damien George
b6bdf18deb
tools/mpy-tool.py: Compute the hash value for str/bytes objects.
This makes it more efficient at runtime to hash str/bytes objects.
8 years ago
Damien George
b4790afdaf
tools/mpy-tool.py: Store qstr config values in global config object.
Makes it easier to access them without passing around another dict of the
config values.
8 years ago
Damien George
72ae3c72c7
tools/mpy-tool.py: Support freezing float literals with obj-repr C.
The tool now generates code for freezing floats in obj-repr A, B or C,
with the specific representation detected at compile time using macros.
8 years ago
Damien George
25a42fb6ef
tools/mpy-tool.py: Don't strip directories from the frozen source name.
Directories are now supported by the frozen import system (to implement
frozen packages) so we should keep them.
9 years ago
Damien George
9b4c013823
tools/mpy-tool.py: Include .py extension in frozen filename.
So that it can be correctly stat'd when looking for frozen files.
9 years ago
Damien George
99b4719357
tools/mpy-tool.py: Add checks for critical configuration vars.
When an mpy file is frozen it must know the values of certain
configuration variables. This patch provides an explicit check in the
generated C file that the configuration variables are what they are
supposed to be.
9 years ago
Damien George
02fd83bcbc
tools/mpy-tool: Make sure that all C-level variables are unique.
Fixes issue #2023 .
9 years ago
Damien George
c3beb16db3
tools/mpy-tool.py: Add support for Python 2.7.
9 years ago
Damien George
0699c6bf9e
tools: Add mpy-tool.py, to work with .mpy files.
Currently it can freeze .mpy files.
9 years ago