Damien George
c38dc3ccc7
py: Implement fallback for equality check for all types.
...
Return "not equal" for objects that don't implement equality check.
This is as per Python specs.
2015-01-11 15:13:18 +00:00
Damien George
ec21405821
py: Add (commented out) code to gc_dump_alloc_table for qstr info.
2015-01-11 14:37:06 +00:00
Damien George
56e1f99ca1
py/makeqstrdata.py: Add more allowed qstr characters; escape quot.
2015-01-11 14:16:24 +00:00
Damien George
01418e9690
py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505).
2015-01-11 14:15:45 +00:00
Damien George
ddd1e18801
py: Add config option MICROPY_COMP_MODULE_CONST for module consts.
...
Compiler optimises lookup of module.CONST when enabled (an existing
feature). Disabled by default; enabled for unix, windows, stmhal.
Costs about 100 bytes ROM on stmhal.
2015-01-10 14:07:24 +00:00
Paul Sokolovsky
7bfe4b21b9
tests: Make ffi_callback.py be able to run on uclibc and macosx.
...
Similar to ffi_float.py.
2015-01-10 00:35:48 +02:00
Damien George
58056b0f43
py: Fix handling of "0" mpz in some functions.
2015-01-09 20:58:58 +00:00
Damien George
f5465b9eb0
stmhal: Reclaim 72 bytes of stack by factoring out flash init code.
2015-01-09 20:38:23 +00:00
Damien George
5d48f234d2
py: Make mem_info print correct remaining stack bytes.
2015-01-09 20:37:49 +00:00
Damien George
a9a0862078
windows: Enable MICROPY_PY_MICROPYTHON_MEM_INFO.
2015-01-09 20:30:26 +00:00
Damien George
89deec0bab
py: Add MICROPY_PY_MICROPYTHON_MEM_INFO to enable mem-info funcs.
...
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}.
2015-01-09 20:12:54 +00:00
Damien George
4a5895c4eb
py: Disable stack checking by default; enable on most ports.
2015-01-09 00:10:55 +00:00
Damien George
85e8e2ed5b
qemu-arm: Add 'test' target to Makefile to run and verify test suite.
...
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.
2015-01-09 00:03:21 +00:00
Damien George
3990dcfcd7
docs: Add note about maximum frequency of busses.
2015-01-08 22:54:26 +00:00
Damien George
14fab60baf
qemu-arm: Get "make RUN_TESTS=1" compiling after changes to core.
2015-01-08 22:12:44 +00:00
Damien George
d2d0648ad0
qemu-arm: Set stack limit in main.
2015-01-08 21:40:35 +00:00
Damien George
7a53ac8ec2
stmhal: Allow to build without float support if wanted.
2015-01-08 17:55:55 +00:00
Damien George
c33ecb83ba
tests: Add test for when instance member overrides class member.
2015-01-08 17:48:44 +00:00
Damien George
5b7aa294e0
py: Fix nlr mp_state_ctx symbol error for Mac.
2015-01-08 16:24:44 +00:00
Damien George
19b3fea6a8
tests: Separate out test cases that rely on float support to float/ dir.
2015-01-08 15:41:37 +00:00
Damien George
115187f7ce
unix: Allow to compile with float support disabled.
2015-01-08 15:41:11 +00:00
stijn
afd6c8e1d2
Remove obsolete bss-related code/build features
...
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
2015-01-08 15:29:44 +01:00
Damien George
181bfb6db2
stmhal: Add MICROPY_HW_USB_VBUS_DETECT_PIN option, for boards without it
...
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 .
2015-01-07 23:54:57 +00:00
Damien George
c223df5113
drivers/cc3000: Fix call to extint_register.
2015-01-07 23:54:19 +00:00
Damien George
3b51b3e90f
stmhal: Collect all root pointers together in 1 place.
...
A GC in stmhal port now only scans true root pointers, not entire BSS.
This reduces base GC time from 1700ms to 900ms.
2015-01-07 23:38:50 +00:00