Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | 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 |
| | |||
* | py: Add basic framework for issuing compile/runtime warnings. | Paul Sokolovsky | 2015-01-01 |
| | |||
* | py: Add guarded includes for asm-based headers. | Damien George | 2015-01-01 |
| | |||
* | docs: Add quickref info about Servo; improve Servo docs. | Damien George | 2015-01-01 |
| | |||
* | Add a command for converting the WAV files | Radomir Dopieralski | 2015-01-01 |
| | | | Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily. | ||
* | py: Change namedtuple error messages to reduce code size. | Damien George | 2015-01-01 |
| | | | | | | We are not word-for-word compatible with CPython exceptions, so we are free to make them short but informative in order to reduce code size. Also, try to make messages the same as existing ones where possible. | ||
* | py: Make terse_arg_mismatch a global function and use it elsewhere. | Damien George | 2015-01-01 |
| | | | | Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected. | ||
* | objnamedtuple: Make sure to initialize type structure completely. | Paul Sokolovsky | 2015-01-01 |
| | |||
* | py: Allow keyword arguments for namedtuple | stijn | 2015-01-01 |
| | |||
* | py: Use sequence of strings for named tuple initialization | stijn | 2015-01-01 |
| | | | | | | - remove single string initialization style - take list of strings instead - store list in the type for fast lookup | ||
* | msvc: Support py/*.h includes per #1022 | stijn | 2015-01-01 |
| | |||
* | py: Fix rshift and not of zero/one edge cases in mpz. | Damien George | 2014-12-31 |
| | | | | Addresses issue #1027. | ||
* | tests: Disable float/float2int.py on pyboard (needs double prec). | Damien George | 2014-12-31 |
| | |||
* | objstr: Fix %d-formatting of floats. | Paul Sokolovsky | 2014-12-31 |
| | |||
* | stmhal: Add fake implementation of __aeabi_f2lz(). | Paul Sokolovsky | 2014-12-30 |
| | | | | To make mp_obj_new_int_from_float() somehow work. | ||
* | py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT. | Paul Sokolovsky | 2014-12-30 |
| | |||
* | py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE. | Paul Sokolovsky | 2014-12-30 |
| | |||
* | py: Partially fix float to int conversion. | Paul Sokolovsky | 2014-12-30 |
| | | | | | | | This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly. | ||
* | tools: Add script to generate a ChangeLog file. | Damien George | 2014-12-29 |
| | | | | | | We don't have an explicit ChangeLog file, but don't really need one because we use a good version control system. This script is useful if you need a pretty-printed ChangeLog for some reason. | ||
* | py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper. | Damien George | 2014-12-29 |
| | |||
* | py: In VM, for selective ip saving, store 1 byte past last opcode. | Damien George | 2014-12-29 |
| | | | | | | This is for efficiency, so we don't need to subtract 1 from the ip before storing it to code_state->ip. It saves a lot of ROM bytes on unix and stmhal. | ||
* | py: Add note about -fno-crossjumping when compiling vm.c. | Paul Sokolovsky | 2014-12-29 |
| | |||
* | docs: Bump version to 1.3.8. | Damien George | 2014-12-29 |
| | | | | Should have done it before tagging... | ||
* | py: Add MP_LIKELY(), MP_UNLIKELY() macros to help branch prediction.v1.3.8 | Paul Sokolovsky | 2014-12-29 |
| | |||
* | showbc: Print operation mnemonic in BINARY_OP. | Paul Sokolovsky | 2014-12-28 |
| | |||
* | showbc: Make code object start pointer semi-public. | Paul Sokolovsky | 2014-12-28 |
| | | | | | This allows to pring either absolute addresses or relative offsets in jumps and code references. | ||
* | vm: Record exception ip only for instructions where exceptions may happen. | Paul Sokolovsky | 2014-12-28 |
| | | | | | | | Mirroring ip to a volatile memory variable for each opcode is an expensive operation. For quite a lot of often executed opcodes like stack manipulation or jumps, exceptions cannot actually happen. So, record ip only for opcode where that's possible. | ||
* | drivers: Add SD card driver, controlled via SPI bus. | Damien George | 2014-12-27 |
| | |||
* | stmhal: Add ability to mount custom block device. | Damien George | 2014-12-27 |
| | |||
* | lib/fatfs: Allow a smaller minimum sector count for fatfs to be created. | Damien George | 2014-12-27 |
| | |||
* | stmhal: Upgrade to latest fatfs driver. | Damien George | 2014-12-27 |
| | |||
* | lib/fatfs: Support our volume names; make some funcs static. | Damien George | 2014-12-27 |
| | |||
* | lib/fatfs: Upgrade to new FatFs driver, put in lib/ for common use. | Damien George | 2014-12-27 |
| | | | | Patches to fatfs for our use will follow. | ||
* | py: Allow to properly disable builtin slice operation. | Damien George | 2014-12-27 |
| | | | | | | | This patch makes the MICROPY_PY_BUILTINS_SLICE compile-time option fully disable the builtin slice operation (when set to 0). This includes removing the slice sytanx from the grammar. Now, enabling slice costs 4228 bytes on unix x64, and 1816 bytes on stmhal. | ||
* | py: Allow to properly disable builtin "set" object. | Damien George | 2014-12-27 |
| | | | | | | | | This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully disable the builtin set object (when set to 0). This includes removing set constructor/comprehension from the grammar, the compiler and the emitters. Now, enabling set costs 8168 bytes on unix x64, and 3576 bytes on stmhal. | ||
* | Makefiles: Support py/*.h includes per #1022. | Paul Sokolovsky | 2014-12-27 |
| | |||
* | py: Move to guarded includes for compile.h and related headers. | Paul Sokolovsky | 2014-12-27 |
| | |||
* | showbc: Refactor to allow inline instruction printing. | Paul Sokolovsky | 2014-12-27 |
| | |||
* | py: Make bytes objs work with more str methods; add tests. | Damien George | 2014-12-24 |
| | |||
* | tests: Add run-tests-exp.py, simple MicroPython-based test runner. | Paul Sokolovsky | 2014-12-24 |
| | | | | | | | This script is rewrite of run-tests-exp.sh, and tries to achieve self-hosted testsuite running in environments where neither CPython nor unix shell is available. As run-tests-exp.sh, it requires complete set of .exp files pre-generated with ./run-test --write-exp. | ||
* | stmhal: Enable ubinascii module, weak link to binascii. | Damien George | 2014-12-24 |
| | |||
* | docs: Add mention about using USB charger when resetting the filesystem. | Dave Hylands | 2014-12-23 |
| | | | | | | It seems the Mac will happily wipe out at least some of the data on a freshly reset filesytem, if the filesystem was reset while plugged into the Mac. | ||
* | unix, windows: Add _os.system() call. | Paul Sokolovsky | 2014-12-23 |
| | | | | | | system() is the basic function to support automation of tasks, so have it available builtin, for example, for bootstrapping rest of micropython environment. | ||
* | docs: Make admonition for CPy-difference use "attention" class. | Damien George | 2014-12-22 |
| | | | | This renders it in yellow/orange box on RTD server. | ||
* | py: Reduce size of VM exception stack element by 1 machine word. | Damien George | 2014-12-22 |
| | | | | | | | | | | | This optimisation reduces the VM exception stack element (mp_exc_stack_t) by 1 word, by using bit 1 of a pointer to store whether the opcode was a FINALLY or WITH opcode. This optimisation was pending, waiting for maturity of the exception handling code, which has now proven itself. Saves 1 machine word RAM for each exception (4->3 words per exception). Increases stmhal code by 4 bytes, and decreases unix x64 code by 32 bytes. | ||
* | py: Use str_to_int function in more places to reduce code size. | Damien George | 2014-12-21 |
| | |||
* | py: Remove last uses of printf from compile; use proper SyntaxError. | Damien George | 2014-12-21 |
| | |||
* | py: Move global/nonlocal decl code to compiler for proper SyntaxError. | Damien George | 2014-12-21 |
| | | | | | | This patch gives proper SyntaxError exceptions for bad global/nonlocal declarations. It also reduces code size: 304 bytes on unix x64, 132 bytes on stmhal. | ||
* | py: Fix iteration over map in 2 places. | Damien George | 2014-12-21 |
| |