Paul Sokolovsky
66fd3e4a7b
unix: Use standard mphalport.h header.
...
This also unbreaks "make minimal".
2015-11-13 15:44:26 +02:00
Paul Sokolovsky
3a6b3d230c
main.c: Switch stderr printing from ANSI C to native POSIX.
2015-11-13 15:29:42 +02:00
Paul Sokolovsky
94f9330d3e
unix: Allow to override MICROPY_PY_MATH_SPECIAL_FUNCTIONS from command-line.
2015-11-13 15:24:57 +02:00
Paul Sokolovsky
6d1eabfeaa
unix/mpconfigport: Move log2() definition to modmath.c.
...
It's safer to define it where it's used, defining it for all source files
may lead to hard to diagnose conflicts in corner cases.
2015-11-13 15:24:48 +02:00
Damien George
432e8275a9
py: Allow to import compiled bytecode files.
2015-11-13 12:49:18 +00:00
Damien George
d8c834c95d
py: Add MICROPY_PERSISTENT_CODE_LOAD/SAVE to load/save bytecode.
...
MICROPY_PERSISTENT_CODE must be enabled, and then enabling
MICROPY_PERSISTENT_CODE_LOAD/SAVE (either or both) will allow loading
and/or saving of code (at the moment just bytecode) from/to a .mpy file.
2015-11-13 12:49:18 +00:00
Damien George
c8e9c0d89a
py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime.
...
Main changes when MICROPY_PERSISTENT_CODE is enabled are:
- qstrs are encoded as 2-byte fixed width in the bytecode
- all pointers are removed from bytecode and put in const_table (this
includes const objects and raw code pointers)
Ultimately this option will enable persistence for not just bytecode but
also native code.
2015-11-13 12:49:18 +00:00
Damien George
713ea1800d
py: Add constant table to bytecode.
...
Contains just argument names at the moment but makes it easy to add
arbitrary constants.
2015-11-13 12:49:18 +00:00
Damien George
3a3db4dcf0
py: Put all bytecode state (arg count, etc) in bytecode.
2015-11-13 12:49:18 +00:00
Damien George
9b7f583b0c
py: Reorganise bytecode layout so it's more structured, easier to edit.
2015-11-13 12:49:18 +00:00
Paul Sokolovsky
f882d53fcd
unix/main: Use builtin unichar_isdigit() in preference if libc's.
...
Less dependencies.
2015-11-13 01:57:08 +02:00
Paul Sokolovsky
772f0b4159
tests/jni: Add test for working with container of List interface.
2015-11-13 01:33:09 +02:00
Paul Sokolovsky
3c7e1b80ac
unix/modjni: Add missing get_jclass_name() function.
2015-11-11 16:43:27 +02:00
Dave Hylands
3551368424
docs: Fix a typo in the REPL documentation.
2015-11-10 22:19:20 +02:00
Paul Sokolovsky
73ff0687f2
lib/utils/printf: Move from stmhal/ .
...
This file contains various MicroPython-specific helper functions, so isn't
good fit for lib/libc/.
2015-11-10 18:58:58 +02:00
stijn
b1dbbd32eb
windows: Allow specifying the python executable to use for msvc builds
...
This defaults to 'python' but can be now overridden if needed
2015-11-10 17:37:09 +02:00
omtinez
1b9d161f94
Fix project file for Visual Studio 2015
2015-11-10 17:36:08 +02:00
Paul Sokolovsky
549c79d11e
docs/select: Document POLLIN/OUT/ERR/HUP.
2015-11-09 22:10:32 +02:00
Paul Sokolovsky
746b752b8e
stmhal/moduselect: Expose POLLIN/OUT/ERR/HUP constants.
...
This makes select.poll() interface fully compatible with CpYthon. Also, make
their numeric values of these options compatible with Linux (and by extension,
with iBCS2 standard, which jopefully means compatibility with other Unices too).
2015-11-09 22:10:31 +02:00
Damien George
1f92ffb5b7
py/emitinlinethumb: Allow to compile with -Wsign-compare.
2015-11-09 14:11:47 +00:00
Damien George
723d598d32
py/asmthumb: Allow to compile with -Wsign-compare and -Wunused-parameter.
2015-11-09 14:11:21 +00:00
Damien George
40274fec9c
lib/pyexec: Move header pyexec.h from stmhal directory.
2015-11-09 13:13:09 +00:00
Paul Sokolovsky
50f56227c6
py/objint_longlong: Instead of assert, throw OverflowError.
2015-11-09 01:34:56 +02:00
Alex March
c27e5c4b0b
cc3200: FatFS configuration moved to the library folder.
...
Port specific settinigs defined in mpconfigport. FreeRTOS and semphr
headers added to define SemaphoreHandle_t for the SYNC_T.
2015-11-08 22:21:17 +00:00
Alex March
748509a93c
stmhal: FatFS configuration moved to the library folder.
...
Port specific settings defined in mpconfigport.
2015-11-08 22:21:17 +00:00