<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tools/mpy-tool.py, branch 2.2.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-08-16T08:38:19+00:00</updated>
<entry>
<title>tools/mpy-tool.py: Fix missing argument in dump() function</title>
<updated>2017-08-16T08:38:19+00:00</updated>
<author>
<name>stijn</name>
<email>stijn@ignitron.net</email>
</author>
<published>2017-08-16T08:37:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e4ab404780dfa194864c579407a054cf6c75db3a'/>
<id>urn:sha1:e4ab404780dfa194864c579407a054cf6c75db3a</id>
<content type='text'>
This makes the -d commandline argument usable again.
Pass empty string as parent name as listing starts from the root.
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Don't generate const_table if it's empty.</title>
<updated>2017-08-12T12:26:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-08-12T12:26:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b6a328956467339f568b19d9192fbbfdfa47a572'/>
<id>urn:sha1:b6a328956467339f568b19d9192fbbfdfa47a572</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.</title>
<updated>2017-05-16T08:53:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-05-16T08:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=88c51c3592edc6c29fb0aad57c91e535793aa31b'/>
<id>urn:sha1:88c51c3592edc6c29fb0aad57c91e535793aa31b</id>
<content type='text'>
Regression was introduced by ec534609f665cb791b8fc1eae1a44e514c297659
</content>
</entry>
<entry>
<title>tools/mpy-tool.py: Use MP_ROM_xxx macros to support nanbox builds.</title>
<updated>2017-05-13T00:08:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-05-13T00:08:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ec534609f665cb791b8fc1eae1a44e514c297659'/>
<id>urn:sha1:ec534609f665cb791b8fc1eae1a44e514c297659</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/mpy-tool: Make work if run from another directory.</title>
<updated>2017-04-30T21:01:30+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-04-30T21:01:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=473e85e2da847ade98d728a17c339f5c75a19369'/>
<id>urn:sha1:473e85e2da847ade98d728a17c339f5c75a19369</id>
<content type='text'>
By making sure we don't add relative paths to sys.path.
</content>
</entry>
<entry>
<title>py: Add LOAD_SUPER_METHOD bytecode to allow heap-free super meth calls.</title>
<updated>2017-04-22T13:39:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-04-18T23:45:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dd11af209d226b7d18d5148b239662e30ed60bad'/>
<id>urn:sha1:dd11af209d226b7d18d5148b239662e30ed60bad</id>
<content type='text'>
This patch allows the following code to run without allocating on the heap:

    super().foo(...)

Before this patch such a call would allocate a super object on the heap and
then load the foo method and call it right away.  The super object is only
needed to perform the lookup of the method and not needed after that.  This
patch makes an optimisation to allocate the super object on the C stack and
discard it right after use.

Changes in code size due to this patch are:

   bare-arm: +128
    minimal: +232
   unix x64: +416
unix nanbox: +364
     stmhal: +184
    esp8266: +340
     cc3200: +128
</content>
</entry>
<entry>
<title>py/persistentcode: Bump .mpy version due to change in bytecode.</title>
<updated>2017-02-16T13:19:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-02-16T13:19:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6a11048af1d01c78bdacddadd1b72dc7ba7c6478'/>
<id>urn:sha1:6a11048af1d01c78bdacddadd1b72dc7ba7c6478</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
