Paul Sokolovsky
141df2d350
unix: Dump default heap size in usage message.
2014-06-24 16:58:00 +03:00
Paul Sokolovsky
cd590cbfaa
unix: Don't error out on #warning directive.
2014-06-22 19:20:55 +03:00
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.
2014-06-22 19:20:55 +03:00
Paul Sokolovsky
949a49c9da
modsocket: Add call to freeaddrinfo().
2014-06-22 19:11:34 +03:00
Paul Sokolovsky
69d0a1c540
unix: uClibc doesn't like NULL as a buffer arg to realpath().
...
So, allocate one explicitly.
2014-06-22 19:08:32 +03:00
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.
2014-06-22 01:40:45 +03:00
Paul Sokolovsky
59c675a64c
py: Include mpconfig.h before all other includes.
...
It defines types used by all other headers.
Fixes #691 .
2014-06-21 22:43:22 +03:00
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.
2014-06-20 23:49:30 +03:00
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.
2014-06-20 20:25:35 +03:00
Paul Sokolovsky
17a49431d4
unix: Allow to override MICROPY_GCREGS_SETJMP from cmdline.
2014-06-20 20:22:31 +03:00
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).
2014-06-20 20:21:21 +03:00
Paul Sokolovsky
7e56e55252
unix: Refactor order file munging fo MacOSX.
2014-06-20 20:21:11 +03:00
Paul Sokolovsky
eecf3e90c6
unix: Group CFLAGS related stuff together.
2014-06-20 20:21:11 +03:00
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.
2014-06-20 20:18:08 +03:00
Paul Sokolovsky
f605172d2b
tests/float/: Skip tests if "math" module is not available.
2014-06-20 18:00:23 +03:00
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 ;-).
2014-06-20 18:00:23 +03:00
Paul Sokolovsky
7efbd325bb
Merge pull request #697 from stinos/gc-debug
...
gc: More verbose debugging
2014-06-20 17:33:02 +03:00
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
2014-06-20 17:29:58 +03:00
Paul Sokolovsky
74c710187c
bench: Three ways to process a byte buffer.
2014-06-19 22:27:13 +03:00
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()).
2014-06-19 22:19:24 +03:00
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.
2014-06-19 21:44:33 +03:00
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.
2014-06-19 20:49:03 +03:00
Emmanuel Blot
f6932d6506
Prefix ARRAY_SIZE with micropython prefix MP_
2014-06-19 18:54:34 +02:00
Emmanuel Blot
bf3366a48b
Add missing “assert.h” file header inclusion from “nlr.h”
2014-06-19 18:47:38 +02:00
Damien George
b0851e5949
Merge pull request #700 from swegener/for-upstream
...
bare-arm, stmhal: Disable stack protector
2014-06-18 14:59:39 +01:00