<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tools/mpy-tool.py, branch 0.9.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-01-05T04:52:52+00:00</updated>
<entry>
<title>tools/mpy-tool.py: Add support for OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.</title>
<updated>2017-01-05T04:52:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-01-05T04:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=98458a46ec9c34fa59dbfa7c9189b7e181e5e7a3'/>
<id>urn:sha1:98458a46ec9c34fa59dbfa7c9189b7e181e5e7a3</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>py: Update opcode format table because 3 opcodes were removed, 1 added.</title>
<updated>2016-09-23T02:48:57+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-23T02:48:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7df9291b6c33fb8b5ff3215939f7f563d235e8c4'/>
<id>urn:sha1:7df9291b6c33fb8b5ff3215939f7f563d235e8c4</id>
<content type='text'>
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has
been added in adaf0d865cd6c81fb352751566460506392ed55f.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Support freezing of complex numbers.</title>
<updated>2016-09-02T14:19:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-02T14:19:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c51c883cc84bb680dcc810a81e81dd1df879a07c'/>
<id>urn:sha1:c51c883cc84bb680dcc810a81e81dd1df879a07c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Compute the hash value for str/bytes objects.</title>
<updated>2016-09-02T05:10:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-02T05:10:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b6bdf18debfd75e9d39c2e8452c7b4ade448bcc5'/>
<id>urn:sha1:b6bdf18debfd75e9d39c2e8452c7b4ade448bcc5</id>
<content type='text'>
This makes it more efficient at runtime to hash str/bytes objects.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Store qstr config values in global config object.</title>
<updated>2016-09-02T05:09:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-02T05:09:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b4790afdafaf243ca7a1ec250917f30ed00a2d2d'/>
<id>urn:sha1:b4790afdafaf243ca7a1ec250917f30ed00a2d2d</id>
<content type='text'>
Makes it easier to access them without passing around another dict of the
config values.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Support freezing float literals with obj-repr C.</title>
<updated>2016-08-10T03:26:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-08-10T03:26:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=72ae3c72c7341656bcc610a5671e5cc23f7cf280'/>
<id>urn:sha1:72ae3c72c7341656bcc610a5671e5cc23f7cf280</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Don't strip directories from the frozen source name.</title>
<updated>2016-05-23T12:29:03+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-23T12:29:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=25a42fb6ef540f917eb6aaca1beca5888c6e0a26'/>
<id>urn:sha1:25a42fb6ef540f917eb6aaca1beca5888c6e0a26</id>
<content type='text'>
Directories are now supported by the frozen import system (to implement
frozen packages) so we should keep them.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Include .py extension in frozen filename.</title>
<updated>2016-05-23T11:46:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-23T11:46:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9b4c013823fb04e31412a20b4d53a397be912625'/>
<id>urn:sha1:9b4c013823fb04e31412a20b4d53a397be912625</id>
<content type='text'>
So that it can be correctly stat'd when looking for frozen files.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Add checks for critical configuration vars.</title>
<updated>2016-05-16T22:13:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-16T22:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=99b4719357f52cdc945db3ca7213b21d43297170'/>
<id>urn:sha1:99b4719357f52cdc945db3ca7213b21d43297170</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>tools/mpy-tool: Make sure that all C-level variables are unique.</title>
<updated>2016-05-03T11:24:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-03T11:24:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=02fd83bcbce533b4aded6e062b36d4b3a2695218'/>
<id>urn:sha1:02fd83bcbce533b4aded6e062b36d4b3a2695218</id>
<content type='text'>
Fixes issue #2023.
</content>
</entry>
</feed>
