Damien George
8a2347723e
py: Move global variable nlr_top to one place, in a .c file.
This reduces dependency on assembler, and allows to consolidate global
variables in the future.
10 years ago
Damien George
0b2a60acbe
windows: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
fe7d542352
esp8266: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
4ef4ffe1c5
qemu-arm: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
c2e22d66da
bare-arm: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
b68d98d61c
teensy: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
2cf6dfa280
stmhal: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
b36be5ff51
unix-cpy: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
6d7e47087f
unix: Prefix includes with py/; remove need for -I../py.
10 years ago
Damien George
3765ea419a
extmod: Prefix py/ for includes from py core directory.
10 years ago
Damien George
51dfcb4bb7
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022 .
10 years ago
Paul Sokolovsky
db1ac360c3
emitnative: Disable warning in delete_fast for now (breaks test).
10 years ago
Paul Sokolovsky
8a8c1fc82f
py: Add basic framework for issuing compile/runtime warnings.
10 years ago
Damien George
ebde3c694f
py: Add guarded includes for asm-based headers.
10 years ago
Damien George
ddbcc79550
docs: Add quickref info about Servo; improve Servo docs.
10 years ago
Radomir Dopieralski
ce5b5caf8c
Add a command for converting the WAV files
Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily.
10 years ago
Damien George
84e0cf0d21
py: Change namedtuple error messages to reduce code size.
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.
10 years ago
Damien George
7f23384d49
py: Make terse_arg_mismatch a global function and use it elsewhere.
Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected.
10 years ago
Paul Sokolovsky
276159e5dd
objnamedtuple: Make sure to initialize type structure completely.
10 years ago
stijn
021dc44009
py: Allow keyword arguments for namedtuple
10 years ago
stijn
12340147b0
py: Use sequence of strings for named tuple initialization
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
10 years ago
stijn
8422cac088
msvc: Support py/*.h includes per #1022
10 years ago
Damien George
e0ac194f4f
py: Fix rshift and not of zero/one edge cases in mpz.
Addresses issue #1027 .
10 years ago
Damien George
816a46a4ab
tests: Disable float/float2int.py on pyboard (needs double prec).
10 years ago
Paul Sokolovsky
2c75665445
objstr: Fix %d-formatting of floats.
10 years ago
Paul Sokolovsky
8a2cc1c7e4
stmhal: Add fake implementation of __aeabi_f2lz().
To make mp_obj_new_int_from_float() somehow work.
10 years ago
Paul Sokolovsky
5f68094e10
py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT.
10 years ago
Paul Sokolovsky
f79cd6a233
py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE.
10 years ago
Paul Sokolovsky
12033df511
py: Partially fix float to int conversion.
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.
10 years ago
Damien George
e3fa8278b4
tools: Add script to generate a ChangeLog file.
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.
10 years ago
Damien George
9ddbe291c4
py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper.
10 years ago
Damien George
f89d659e3b
py: In VM, for selective ip saving, store 1 byte past last opcode.
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.
10 years ago
Paul Sokolovsky
23f1b5ff66
py: Add note about -fno-crossjumping when compiling vm.c.
10 years ago
Damien George
96e22154d7
docs: Bump version to 1.3.8.
Should have done it before tagging...
10 years ago
Paul Sokolovsky
361909e3ca
py: Add MP_LIKELY(), MP_UNLIKELY() macros to help branch prediction.
10 years ago
Paul Sokolovsky
1ee1785bed
showbc: Print operation mnemonic in BINARY_OP.
10 years ago
Paul Sokolovsky
df103462dc
showbc: Make code object start pointer semi-public.
This allows to pring either absolute addresses or relative offsets in jumps
and code references.
10 years ago
Paul Sokolovsky
749575097f
vm: Record exception ip only for instructions where exceptions may happen.
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.
10 years ago
Damien George
1570eaf0e3
drivers: Add SD card driver, controlled via SPI bus.
10 years ago
Damien George
7690b13953
stmhal: Add ability to mount custom block device.
10 years ago
Damien George
e2745b307b
lib/fatfs: Allow a smaller minimum sector count for fatfs to be created.
10 years ago
Damien George
20236a8a99
stmhal: Upgrade to latest fatfs driver.
10 years ago
Damien George
6b755d827a
lib/fatfs: Support our volume names; make some funcs static.
10 years ago
Damien George
c546b66bab
lib/fatfs: Upgrade to new FatFs driver, put in lib/ for common use.
Patches to fatfs for our use will follow.
10 years ago
Damien George
83204f3406
py: Allow to properly disable builtin slice operation.
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.
10 years ago
Damien George
e37dcaafb4
py: Allow to properly disable builtin "set" object.
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.
10 years ago
Paul Sokolovsky
3b74c91684
Makefiles: Support py/*.h includes per #1022 .
10 years ago
Paul Sokolovsky
8ab6f90674
py: Move to guarded includes for compile.h and related headers.
10 years ago
Paul Sokolovsky
343266ea51
showbc: Refactor to allow inline instruction printing.
10 years ago
Damien George
c55a4d82cf
py: Make bytes objs work with more str methods; add tests.
10 years ago