<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tools/mpy-tool.py, branch 3.1.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.1.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.1.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-10-09T23:37:38+00:00</updated>
<entry>
<title>py/bc: Update opcode_format_table to match the bytecode.</title>
<updated>2017-10-09T23:37:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-09T23:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=933eab46fcf2dcca2c3ca3d04b714f238e6020e1'/>
<id>urn:sha1:933eab46fcf2dcca2c3ca3d04b714f238e6020e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/persistentcode: Bump .mpy version number to version 3.</title>
<updated>2017-10-04T23:49:44+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T23:48:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ff93fd4f50321c6190e1659b19e64fef3045a484'/>
<id>urn:sha1:ff93fd4f50321c6190e1659b19e64fef3045a484</id>
<content type='text'>
The binary and unary ops have changed bytecode encoding.
</content>
</entry>
<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>
</feed>
