summaryrefslogtreecommitdiffstatshomepage
path: root/tools/mpy-tool.py
Commit message (Collapse)AuthorAge
* tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.Damien George2017-01-05
| | | | | | | 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).
* py: Update opcode format table because 3 opcodes were removed, 1 added.Damien George2016-09-23
| | | | | LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has been added in adaf0d865cd6c81fb352751566460506392ed55f.
* tools/mpy-tool.py: Support freezing of complex numbers.Damien George2016-09-03
|
* tools/mpy-tool.py: Compute the hash value for str/bytes objects.Damien George2016-09-02
| | | | This makes it more efficient at runtime to hash str/bytes objects.
* tools/mpy-tool.py: Store qstr config values in global config object.Damien George2016-09-02
| | | | | Makes it easier to access them without passing around another dict of the config values.
* tools/mpy-tool.py: Support freezing float literals with obj-repr C.Damien George2016-08-10
| | | | | 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.
* tools/mpy-tool.py: Don't strip directories from the frozen source name.Damien George2016-05-23
| | | | | Directories are now supported by the frozen import system (to implement frozen packages) so we should keep them.
* tools/mpy-tool.py: Include .py extension in frozen filename.Damien George2016-05-23
| | | | So that it can be correctly stat'd when looking for frozen files.
* tools/mpy-tool.py: Add checks for critical configuration vars.Damien George2016-05-16
| | | | | | | 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.
* tools/mpy-tool: Make sure that all C-level variables are unique.Damien George2016-05-03
| | | | Fixes issue #2023.
* tools/mpy-tool.py: Add support for Python 2.7.Damien George2016-04-15
|
* tools: Add mpy-tool.py, to work with .mpy files.Damien George2016-04-13
Currently it can freeze .mpy files.