Age | Commit message (Collapse) | Author |
|
|
|
Previous to this patch the qemu-arm tests were compiled with is_relp=true
meaning that the __repl_print__ function was called for all lines of code
in the outer scope. This is not the right behaviour for scripts that are
executed as though they were a file (eg tests).
With this fix the micropython/heapalloc_str.py test now works so it is
removed from the test blacklist.
|
|
|
|
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).
|
|
Previous to this patch pyboard.py would open a new serial connection to
the target for each script that was run, and for any command that was run.
Apart from being inefficient, this meant that the board was soft-reset
between scripts/commands, which precludes scripts from accessing variables
set in a previous one.
This patch changes the behaviour of pyboard.py so that the connection to
the target is created only once, and it's not reset between scripts or any
command that is sent with the -c option.
|
|
|
|
To make its inclusion as frozen modules in multiple ports less magic.
Ports are just expected to symlink 2 files into their scripts/modules
subdirs.
Unix port updated to use this and in general follow frozen modules setup
tested and tried on baremetal ports, where there's "scripts" predefined
dir (overridable with FROZEN_DIR make var), and a user just drops Python
files there.
|
|
This helps to test floating point code on Cortex-M hardware.
As part of this patch the link-time-optimisation was disabled because it
wasn't compatible with software FP support. In particular, the linker
could not find the __aeabi_f2d, __aeabi_d2f etc functions even though they
were provided by lib/libm/math.c.
|
|
|
|
|
|
|
|
Deprecated for long time, pip-micropython now can't install packages
optimized for low-heap ports (like whole of micropython-lib).
|
|
|
|
Fix error on unix when installing to non-existing absolute path.
|
|
The qemu-arm port is used for testing of ARM Thumb architecture on a
desktop so should have many features enabled.
|
|
Initial support for running on a baremetal, low-heap systems (like esp8266),
using Python module interface.
|
|
Fully self-hosted release (without fallbacks), and uses stream gzip
decompression (step towards support for limited-heap baremetal systems).
|
|
|
|
LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has
been added in adaf0d865cd6c81fb352751566460506392ed55f.
|
|
|
|
This makes it more efficient at runtime to hash str/bytes objects.
|
|
Makes it easier to access them without passing around another dict of the
config values.
|
|
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.
|
|
SSL certificate warning, switch to uerrno, and better usage message.
|
|
Directories are now supported by the frozen import system (to implement
frozen packages) so we should keep them.
|
|
So that it can be correctly stat'd when looking for frozen files.
|
|
Frozen modules are now stored with extensions and with '/' as path
separator. In other words, frozen modules paths stored as they are
in normal filesystem.
|
|
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.
|
|
It allows to "import foo.bar", but not "from foo import bar".
|
|
|
|
Fixes issue #2023.
|
|
|
|
The config variable MICROPY_MODULE_FROZEN is now made of two separate
parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This
allows to have none, either or both of frozen strings and frozen mpy
files (aka frozen bytecode).
|
|
Currently it can freeze .mpy files.
|
|
Hopefully these tests run reliably on Travis.
|
|
|
|
To allow simple zero-terminated lexers.
|
|
|
|
Updated for _os -> uos builtin module rename.
|
|
|
|
Also prints a nicer error message if the serial connection could not be
established.
|
|
|
|
|
|
|
|
Removes FFI dependency, instead uses builtin os module. Thus can work on
systems where dynamic library loading is not available.
|
|
|
|
|
|
|
|
MICROPYPATH environment variable is now honored, package are installed to
first path specified in it.
|
|
|