| Commit message (Collapse) | Author | Age |
|\
| |
| | |
unix: Remove unused CTRL-D definition
|
| | |
|
|/
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
msvc: Enable GC
|
| | |
|
| |
| |
| |
| |
| | |
The pointers to the bss section are acquired in init.c()
by inspecting the PE header. Works for msvc and mingw.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
It sucks to workaround this on uPy side, but upgrading not upgradable
embedded systems sucks even more.
|
| | |
|
|/
|
|
| |
So, allocate one explicitly.
|
|
|
|
| |
These changes were tested with QEMU, and by few people of real hardware.
|
| |
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
- Move the includes for alloca() intp mpconfigport.h
|
| |
| |
| |
| |
| | |
Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a
string value they need.
|
|\ \
| | |
| | | |
toolchain fixes to enable cross compatibility
|
| |/
| |
| |
| |
| |
| |
| | |
there are special tweaks and paths to be considered. Just provide some
defaults, in case the values are undefined.
- py-version.sh does not need any bash specific features.
- Use libdl only on Linux for now. FreeBSD provides dl*() calls from libc.
|
|/
|
|
|
|
|
|
| |
cast error in MP_OBJ_NEW_SMALL_INT(). This is necessary for FreeBSD, where
st_ino is of different size
- If MP_CLOCKS_PER_SEC is defined on the target host, simply define CLOCK_DIV
as a fraction, regardless of the value of MP_CLOCKS_PER_SEC.
FreeBSD uses a non-POSIX compliant value of 128 for CLOCKS_PER_SEC
|
|\
| |
| | |
unix: Fix path seperator used depending on OS
|
| |
| |
| |
| | |
';' is the standard seperator used for paths in environment variables on Windows
|
|/ |
|
|
|
|
|
|
|
|
| |
As I suspected for a long time, for x86, register helper doesn't really make
any difference - there's simply not enough register to keep anything in
them for any prolonged time. Anything gets pushed on stack anyway. So, on
x86, uPy passed all tests even with empty reg helper. So, this setjmp
implementation goes as "untested".
|
|
|
|
|
| |
This allows to have multiple "optimization" levels (CPython has two
(-OO removes docstrings), we can have more).
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This renames:
MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
See issue #35 for discussion.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 6e76f7bc90fcd130db888f8804b8555dc8f3a484.
This patch tries to workaround a previous clang workaround. Instead of going
into workaround of workaround spiral, the original workaround should be tamed.
|
|
|
|
|
|
|
|
| |
Without this fix, I get the following error:
CC gccollect.c
gccollect.c: In function ‘gc_helper_get_regs’:
gccollect.c:63:1: error: bp cannot be used in asm here
|
| |
|
|
|
|
|
| |
This removes need for some casts (at least, more than it adds need
for new casts!).
|
|
|
|
| |
Addresses issue #598.
|
|
|
|
| |
Now of the form MICROPY_PY_*. See issue #35.
|
| |
|
|
|
|
|
| |
.makefile() should allow to specify which stream time to create - byte
or text.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
MP_ALLOC_* -> MICROPY_ALLOC_*
MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
MICROPY_EXTRA_* -> MICROPY_PORT_*
See issue #35.
|
| |
|
|\
| |
| | |
Allow compilation of unix port under clang on OS X
|