Damien George
40f3c02682
Rename machine_(u)int_t to mp_(u)int_t.
See discussion in issue #50 .
11 years ago
Paul Sokolovsky
caa7334141
stackctrl: Add "mp_" prefix.
11 years ago
stijn
5478ed18ea
unix: Fix mpconfig.h not being included before misc.h
This fixes count_lead_ones in misc.h not compiling due to unknown types
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
76c8a4c91b
unix: Add setjmp-based GC register helper implementation.
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".
11 years ago
Paul Sokolovsky
1d567592b1
unix/gccollect.c: Make Clang workaround apply only to it. Unbreaks gcc builds.
11 years ago
Antonin ENFRUN
ceac71f1f5
unix: Add asm statements needed to read registers with clang. Code generated by gcc 4.9.0 is unchanged (same statements, different order).
Both are inefficient, saving unmodified registers on the stack.
11 years ago
Damien George
04b9147e15
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
11 years ago
xbe
a36a55d2cf
unix: Update comment in gccollect.c
11 years ago
Damien George
4b34c76fd6
Changes to get unix/ port compiling on Cygwin.
11 years ago
xbe
c93a22197b
unix: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
Paul Sokolovsky
61f9b1c621
unix: Add GC support for ARM architecture.
11 years ago
Damien George
ce1162ab15
GC: Fix printf formats for debugging; add gc_dump_alloc_table.
11 years ago
Paul Sokolovsky
723a6ed371
More GC debugging improvements.
11 years ago
Paul Sokolovsky
e7db8171d8
unix: Implement garbage collection support.
11 years ago