- Jun 03, 2019
-
-
Damien George authored
Building mpy-cross automatically leads to some issues with the build process and slows it down. Instead, require it to be built manually.
-
- May 29, 2019
-
-
Damien George authored
mpy-cross uses MICROPY_DYNAMIC_COMPILER and MICROPY_EMIT_NATIVE but does not actually need to execute native functions, and does not need mp_fun_table. This commit makes it so mp_fun_table and all its entries are not built when MICROPY_DYNAMIC_COMPILER is enabled, significantly reducing the size of the mpy-cross executable and allowing it to be built on more machines/OS's.
-
Damien George authored
-
Damien George authored
-
- May 27, 2019
-
-
Damien George authored
These are incorrect since 5a2599d9
-
- May 22, 2019
-
-
Sebastien Rinsoz authored
This ; make Windows compilation fail with GNU makefile 4.2.1. It was added in 0dc85c9f as part of a shell if- statement, but this if-statement was subsequently removed in 23a693ec so the semicolon is not needed.
-
Sebastien Rinsoz authored
The variable $(TOUCH) is initialized with the "touch" value in mkenv.mk like for the other command line tools (rm, echo, cp, mkdir etc). With this, for example, Windows users can specify the path of touch.exe.
-
- May 21, 2019
-
-
Sébastien Rinsoz authored
The variable $(CAT) is initialised with the "cat" value in mkenv.mk like for the other command line tools (rm, echo, cp, mkdir etc). With this, for example, Windows users can specify the path of cat.exe.
-
stijn authored
Reuse the implementation for bytes since it works the same way regardless of the underlying type. This method gets added for CPython compatibility of bytearray, but to keep the code simple and small array.array now also has a working decode method, which is non-standard but doesn't hurt.
-
- May 17, 2019
-
-
Damien George authored
-
Paul Sokolovsky authored
For modules I initially created or made substantial contributions to.
-
- May 14, 2019
-
-
stijn authored
This allows figuring out the number of bytes in the memoryview object as len(memview) * memview.itemsize. The feature is enabled via MICROPY_PY_BUILTINS_MEMORYVIEW_ITEMSIZE and is disabled by default.
-
- May 13, 2019
-
-
Henrik Vendelbo authored
-
- May 09, 2019
-
-
Damien George authored
Macro identifiers with a leading underscore are reserved.
-
Damien George authored
-
Damien George authored
Fixes issue #4527.
-
- May 07, 2019
-
-
Damien George authored
Prints something like: MicroPython v1.10-304-g8031b7a25 on 2019-05-02; mpy-cross emitting mpy v4
-
- May 06, 2019
-
-
Jun Wu authored
Prior to this commit, building the unix port with `DEBUG=1` and `-finstrument-functions` the compilation would fail with an error like "control reaches end of non-void function". This change fixes this by removing the problematic "if (0)" branches. Not all branches affect compilation, but they are all removed for consistency.
-
Yonatan Goldschmidt authored
Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR. Disabled by default.
-
- May 03, 2019
-
-
Damien George authored
Variables with type bool now act more like an int, and there is proper casting to/from Python objects.
-
- May 01, 2019
-
-
Damien George authored
With this change, @micropython.asm_thumb functions will work on standard ARM processors (that are in ARM state by default), in scripts and precompiled .mpy files. Addresses issue #4675.
-
- Apr 23, 2019
-
-
Damien George authored
Fixes issue #4702.
-
- Apr 15, 2019
-
-
Damien George authored
The issue described in the comment added here can be seen by forcing a gc_collect() at the start of each call to gc_alloc().
-
Damien George authored
-
Damien George authored
-
- Apr 12, 2019
-
-
Damien George authored
In case (user) source code contains utf-8 encoded data and the default locale is not utf-8. See #4592.
-
- Mar 26, 2019
-
-
Romain Goyet authored
-
Andrew Leech authored
This means the schedule operates on a first-in, first-executed manner rather than the current last-in, first executed.
-
- Mar 19, 2019
-
-
Damien George authored
In 1808b2e8 it was replaced by MICROPY_VFS and related code.
-
- Mar 14, 2019
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- Mar 08, 2019
-
-
Andrew Leech authored
How to use this feature is documented in docs/develop/cmodules.rst.
-
Ayke van Laethem authored
This system makes it a lot easier to include external libraries as static, native modules in MicroPython. Simply pass USER_C_MODULES (like FROZEN_MPY_DIR) as a make parameter.
-
Andrew Leech authored
During make, makemoduledefs.py parses the current builds c files for MP_REGISTER_MODULE(module_name, obj_module, enabled_define) These are used to generate a header with the required entries for "mp_rom_map_elem_t mp_builtin_module_table[]" in py/objmodule.c
-
Damien George authored
-
Damien George authored
This commit adds support for saving and loading .mpy files that contain native code (native, viper and inline-asm). A lot of the ground work was already done for this in the form of removing pointers from generated native code. The changes here are mainly to link in qstr values to the native code, and change the format of .mpy files to contain native code blocks (possibly mixed with bytecode). A top-level summary: - @micropython.native, @micropython.viper and @micropython.asm_thumb/ asm_xtensa are now allowed in .py files when compiling to .mpy, and they work transparently to the user. - Entire .py files can be compiled to native via mpy-cross -X emit=native and for the most part the generated .mpy files should work the same as their bytecode version. - The .mpy file format is changed to 1) specify in the header if the file contains native code and if so the architecture (eg x86, ARMV7M, Xtensa); 2) for each function block the kind of code is specified (bytecode, native, viper, asm). - When native code is loaded from a .mpy file the native code must be modified (in place) to link qstr values in, just like bytecode (see py/persistentcode.c:arch_link_qstr() function). In addition, this now defines a public, native ABI for dynamically loadable native code generated by other languages, like C.
-
Damien George authored
-