Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Fix handling of "0" mpz in some functions. | Damien George | 2015-01-09 |
| | |||
* | stmhal: Reclaim 72 bytes of stack by factoring out flash init code. | Damien George | 2015-01-09 |
| | |||
* | py: Make mem_info print correct remaining stack bytes. | Damien George | 2015-01-09 |
| | |||
* | windows: Enable MICROPY_PY_MICROPYTHON_MEM_INFO. | Damien George | 2015-01-09 |
| | |||
* | py: Add MICROPY_PY_MICROPYTHON_MEM_INFO to enable mem-info funcs. | Damien George | 2015-01-09 |
| | | | | | | This allows to enable mem-info functions in micropython module, even if MICROPY_MEM_STATS is not enabled. In this case, you get mem_info and qstr_info but not mem_{total,current,peak}. | ||
* | py: Disable stack checking by default; enable on most ports. | Damien George | 2015-01-09 |
| | |||
* | qemu-arm: Add 'test' target to Makefile to run and verify test suite. | Damien George | 2015-01-09 |
| | | | | | | | Replaces RUN_TEST=1 definition; now "make test" in qemu-arm directory will run tests/basics/ and check that they all succeed. This patch also enables the test on Travis CI. | ||
* | docs: Add note about maximum frequency of busses. | Damien George | 2015-01-08 |
| | |||
* | qemu-arm: Get "make RUN_TESTS=1" compiling after changes to core. | Damien George | 2015-01-08 |
| | |||
* | qemu-arm: Set stack limit in main. | Damien George | 2015-01-08 |
| | |||
* | stmhal: Allow to build without float support if wanted. | Damien George | 2015-01-08 |
| | |||
* | tests: Add test for when instance member overrides class member. | Damien George | 2015-01-08 |
| | |||
* | py: Fix nlr mp_state_ctx symbol error for Mac. | Damien George | 2015-01-08 |
| | |||
* | tests: Separate out test cases that rely on float support to float/ dir. | Damien George | 2015-01-08 |
| | |||
* | unix: Allow to compile with float support disabled. | Damien George | 2015-01-08 |
| | |||
* | Remove obsolete bss-related code/build features | stijn | 2015-01-08 |
| | | | | | GC for unix/windows builds doesn't make use of the bss section anymore, so we do not need the (sometimes complicated) build features and code related to it | ||
* | stmhal: Add MICROPY_HW_USB_VBUS_DETECT_PIN option, for boards without it | Damien George | 2015-01-07 |
| | | | | | | | | Since all currently supported boards use pin A9 for this function, the value of the macro MICROPY_HW_USB_VBUS_DETECT_PIN is not actually used, just the fact that it is defined. Addresses issue #1048. | ||
* | drivers/cc3000: Fix call to extint_register. | Damien George | 2015-01-07 |
| | |||
* | stmhal: Collect all root pointers together in 1 place. | Damien George | 2015-01-07 |
| | | | | | A GC in stmhal port now only scans true root pointers, not entire BSS. This reduces base GC time from 1700ms to 900ms. | ||
* | docs: Add initial "uctypes" modules docs. WIP. | Paul Sokolovsky | 2015-01-08 |
| | |||
* | py: Add option to cache map lookup results in bytecode. | Damien George | 2015-01-07 |
| | | | | | | | | | | | | | | | This is a simple optimisation inspired by JITing technology: we cache in the bytecode (using 1 byte) the offset of the last successful lookup in a map. This allows us next time round to check in that location in the hash table (mp_map_t) for the desired entry, and if it's there use that entry straight away. Otherwise fallback to a normal map lookup. Works for LOAD_NAME, LOAD_GLOBAL, LOAD_ATTR and STORE_ATTR opcodes. On a few tests it gives >90% cache hit and greatly improves speed of code. Disabled by default. Enabled for unix and stmhal ports. | ||
* | py: Put all global state together in state structures. | Damien George | 2015-01-07 |
| | | | | | | This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient. | ||
* | py: Temporary fix for conversion of float to int when fits in small int. | Damien George | 2015-01-07 |
| | | | | Addresses issue #1044 (see also #1040). Could do with a better fix. | ||
* | showbc: Show conditional jump destination as unsigned value. | Paul Sokolovsky | 2015-01-07 |
| | | | | | | | | This is consistent with how BC_JUMP was handled before. We never show jumps destinations relative to jump instrucion itself, only relative to beginning of function. Another useful way to show them as absolute (real memory address), and this change makes result expected and consistent with how BC_JUMP is shown. | ||
* | docs: For Windows USB CDC driver setup, add link to existing PDF guide. | Damien George | 2015-01-06 |
| | |||
* | objarray: Make sure that longint works as bytearray size. | Paul Sokolovsky | 2015-01-04 |
| | |||
* | msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect | stijn | 2015-01-04 |
| | |||
* | modbuiltins.c: Fix NULL vs MP_OBJ_NULL usage. | Paul Sokolovsky | 2015-01-04 |
| | |||
* | objstr: Common subexpression elimination for vstr_str(field_name). | Paul Sokolovsky | 2015-01-04 |
| | |||
* | objstr: Implement kwargs support for str.format(). | Paul Sokolovsky | 2015-01-04 |
| | |||
* | unix: Enable -fno-crossjumping for fast build. | Paul Sokolovsky | 2015-01-03 |
| | | | | | Confirmed that it improves perfomance of simple "for i in range(N): pass" loop by 15% on Core2. | ||
* | py: Raise exception if trying to convert inf/nan to int. | Damien George | 2015-01-02 |
| | |||
* | py: Fix float to int conversion for large exponents. | David Steinberg | 2015-01-02 |
| | |||
* | msvc: Use single build target for dealing with generated files | stijn | 2015-01-02 |
| | | | | | Remove some duplication in the code for generating qstrdefs.generated.h and py-version.h | ||
* | msvc: Fix unresolved mp_arg_error_terse_mismatch since 7f23384 | stijn | 2015-01-02 |
| | | | | | | | | The compiler treats `if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE)` as a normal statement and generates assembly for it in degug mode as if MICROPY_ERROR_REPORTING is an actual symbol instead of a preprocessor definition. As such linking fails because mp_arg_error_terse_mismatch is not defined when MICROPY_ERROR_REPORTING_TERSE is detailed or normal. | ||
* | msvc: Define main build/include directories in a single location | stijn | 2015-01-02 |
| | | | | | | | | | | | - Use a single file env.props for defining the main directories used when building. env.props resolves the base directory and defines overridable output directories, and is used by all other build files. - Fix the build currently failing, basically because the preprocessing command for generating qstrdefs uses different include directories than the build itself does. (specifically, qstrdefs.h uses #include "py/mpconfig.h" since the fixes for #1022 in 51dfcb4, so we need to use the base directory as include directory, not the py dir itself). So define a single variable containing the include directories instead and use it where needed. | ||
* | py: Make GC's STACK_SIZE definition a proper MICROPY_ config variable. | Damien George | 2015-01-01 |
| | |||
* | py: Fix windows external name error for nlr_top. | Damien George | 2015-01-01 |
| | |||
* | py: Move global variable nlr_top to one place, in a .c file. | Damien George | 2015-01-01 |
| | | | | | This reduces dependency on assembler, and allows to consolidate global variables in the future. | ||
* | windows: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | esp8266: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | qemu-arm: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | bare-arm: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | teensy: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | stmhal: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | unix-cpy: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | unix: Prefix includes with py/; remove need for -I../py. | Damien George | 2015-01-01 |
| | |||
* | extmod: Prefix py/ for includes from py core directory. | Damien George | 2015-01-01 |
| | |||
* | py: Move to guarded includes, everywhere in py/ core. | Damien George | 2015-01-01 |
| | | | | Addresses issue #1022. | ||
* | emitnative: Disable warning in delete_fast for now (breaks test). | Paul Sokolovsky | 2015-01-01 |
| |