Paul Sokolovsky
8993fb6cf0
py: Add protection against printing too nested or recursive data structures.
With a test which cannot be automatically validated so far.
11 years ago
Paul Sokolovsky
7e4ec3bf4f
bare-arm: Hint of setting MICROPY_ERROR_REPORTING to REPORTING_TERSE.
Commented out so far, as enabled leads to dozen more bytes used actually
(due to string pooling effects).
11 years ago
Paul Sokolovsky
81df1e6c98
bare-arm: Disable array module and even bytearray type.
To squeeze few more hundreds of bytes.
11 years ago
Paul Sokolovsky
cb78f862cb
py: Allow to disable array module and bytearray type.
array.array and bytearray share big deal of code, so to get real savings,
both need to be disabled.
11 years ago
Paul Sokolovsky
0a1ea40273
bare-arm: Enable link map file.
This port supposed to be demo of uPy minimality, so let people behold it in
details.
11 years ago
Paul Sokolovsky
8a96ebea75
py: Move stack_ctrl_init() to mp_init().
As stack checking is enabled by default, ports which don't call
stack_ctrl_init() are broken now (report RuntimeError on startup). Save
them trouble and just init stack control framework in interpreter init.
11 years ago
Paul Sokolovsky
64c58403ef
Merge pull request #720 from iabdalkader/mcu_name
Change MCU name config micro
11 years ago
mux
a75e382a9b
Change MCU name config micro
11 years ago
Paul Sokolovsky
3c8ce38d20
Merge pull request #717 from stinos/dead-code
unix: Remove unused CTRL-D definition
11 years ago
Paul Sokolovsky
3659af97c5
Merge pull request #703 from iabdalkader/micro_names
Add MICROPY_HW_MICRO_NAME to boards config
11 years ago
Paul Sokolovsky
16ac4962ae
tests: Add test for catching infinite function recursion.
Put into misc/ to not complicate life for builds with check disabled.
11 years ago
Paul Sokolovsky
7a8ab5a730
stmhal: Use stackctrl framework.
11 years ago
Paul Sokolovsky
23668698cb
py: Add portable framework to query/check C stack usage.
Such mechanism is important to get stable Python functioning, because Python
function calling is handled with C stack. The idea is to sprinkle
STACK_CHECK() calls in places where there can be C recursion.
TODO: Add more STACK_CHECK()'s.
11 years ago
Paul Sokolovsky
91b576d147
Merge pull request #719 from dhylands/pin_fix
Use mp_const_none to initialize mapper and map_dict (fix #701 )
11 years ago
Dave Hylands
f170735b73
Use mp_const_none to initialize mapper and map_dict
11 years ago
Paul Sokolovsky
f3de62e6c2
binary: machine_uint_t vs uint dichotomy starts doing real damage.
11 years ago
Paul Sokolovsky
8e01291c18
travis: Use unified diffs for failed tests.
11 years ago
Paul Sokolovsky
7a2f166949
modstruct: Fix alignment handling issues.
Also, factor out mp_binary_get_int() function.
11 years ago
stijn
39b6e27944
unix: Remove unused CTRL-D definition
11 years ago
Paul Sokolovsky
5aa740c3e2
modgc: Add mem_free()/mem_alloc() methods.
Return free/allocated memory on GC heap.
11 years ago
Damien George
e973acde81
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Paul Sokolovsky
939c2e7f44
Merge pull request #690 from stinos/msvc-gc
msvc: Enable GC
11 years ago
Paul Sokolovsky
3c9b24bebe
modsocket: Fix uClibc detection.
11 years ago
Paul Sokolovsky
141df2d350
unix: Dump default heap size in usage message.
11 years ago
Damien George
780e54cdc3
py: Implement delete_attr in native emitter.
11 years ago
Paul Sokolovsky
cd590cbfaa
unix: Don't error out on #warning directive.
11 years ago
Paul Sokolovsky
ff5932a8d8
modsocket: Workaround uClibc issue with numeric port for getaddrinfo().
It sucks to workaround this on uPy side, but upgrading not upgradable
embedded systems sucks even more.
11 years ago
Paul Sokolovsky
949a49c9da
modsocket: Add call to freeaddrinfo().
11 years ago
Paul Sokolovsky
69d0a1c540
unix: uClibc doesn't like NULL as a buffer arg to realpath().
So, allocate one explicitly.
11 years ago
stijn
de5ce6d461
gc: Use simple cast instead of union to silence compiler
11 years ago
stijn
8abcf666cb
windows: Enable GC and implement bss start and end symbols
The pointers to the bss section are acquired in init.c()
by inspecting the PE header. Works for msvc and mingw.
11 years ago
Paul Sokolovsky
a96cc824bd
py: Support arm and thumb ARM ISAs, in addition to thumb2.
These changes were tested with QEMU, and by few people of real hardware.
11 years ago
Paul Sokolovsky
59c675a64c
py: Include mpconfig.h before all other includes.
It defines types used by all other headers.
Fixes #691 .
11 years ago
Paul Sokolovsky
4c4b9d15ab
mkrules.mk: Pass $(COPT) to link stage.
In generalize case, optimization options should be passed to all stages of
the build process.
11 years ago
Paul Sokolovsky
0fc7efb663
makefile: Pass STRIPFLAGS_EXTRA to strip.
Expected to be set on command line, with the idea being that for different
targets, there're different smartass ABIs which strive to put unneeded
sections into executables, etc., so let people have flexible way to
strip that.
The option name is similar to previously introduced CLFAGS_EXTRA &
LDFLAGS_EXTRA.
11 years ago
Paul Sokolovsky
17a49431d4
unix: Allow to override MICROPY_GCREGS_SETJMP from cmdline.
11 years ago
Paul Sokolovsky
7cd46a12ae
unix: Add CFLAGS_EXTRA & LDFLAGS_EXTRA for command line usage.
The idea is that it should be possible to pass any additional params for
experimentation without need to patch sources (and without need to deviate
from or repeat baseline options).
11 years ago
Paul Sokolovsky
7e56e55252
unix: Refactor order file munging fo MacOSX.
11 years ago
Paul Sokolovsky
eecf3e90c6
unix: Group CFLAGS related stuff together.
11 years ago
Paul Sokolovsky
2099b6897f
unix: Allow to override compiler warning options without touching the rest.
Some people want to enable even more warnings. Let them do it without putting
burden on everyone. Some people vice versa think that current settings should
be relaxed. In this regard, -Werror is the most problematic, it disallows to
use #warning directive, and disallows to pass configuration settings on make
command lines. Again, until decided how to deal with these globally, allow to
work around these problems locally.
11 years ago
Paul Sokolovsky
f605172d2b
tests/float/: Skip tests if "math" module is not available.
11 years ago
Paul Sokolovsky
3b6f7b95eb
py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.
One thing is wanting to do 1 / 2 and get something else but 0, and quite
another - doing rocket science ;-).
11 years ago
Paul Sokolovsky
7efbd325bb
Merge pull request #697 from stinos/gc-debug
gc: More verbose debugging
11 years ago
Paul Sokolovsky
09e3f8f0d1
Merge pull request #707 from eblot/master-v1.1.1-build-fixes
Fix missing declaration of assert()
Replace ARRAY_SIZE with MP_ARRAY_SIZE
11 years ago
Paul Sokolovsky
74c710187c
bench: Three ways to process a byte buffer.
11 years ago
Paul Sokolovsky
59ced651b5
bench: Add test for map() vs inplace operations in array-likes.
map() is 5 times slower. That's mostly because of inefficiency of creating
containers from iterables of unknown length (like map()).
11 years ago
Paul Sokolovsky
17db096505
bench: Add tests for constructing various containers from iterator.
Both "bound" (like, length known) and "unbound" (length unknown) are tested.
All of list, tuple, bytes, bytesarray offer approximately the same
performance, with "unbound" case being 30 times slower.
11 years ago
Paul Sokolovsky
e53d2197e4
bench: Add test for function call overhead.
For a trivial operation, calling a function is 5 times slower than doing
operation inline.
11 years ago
Emmanuel Blot
f6932d6506
Prefix ARRAY_SIZE with micropython prefix MP_
11 years ago
Emmanuel Blot
bf3366a48b
Add missing “assert.h” file header inclusion from “nlr.h”
11 years ago