| Commit message (Collapse) | Author | Age |
... | |
| |
|
|
|
|
| |
One can instead lookup __name__ in the modules dict to get the value.
|
| |
|
|
|
|
|
| |
Takes element primitive type encoded as a char per standard JNI encoding,
and array size. TODO: Support object arrays.
|
| |
|
| |
|
|
|
|
|
| |
It's useful to be able to use symbolic links to add files and directories
to the set of scripts to be frozen.
|
|
|
|
|
|
|
|
| |
This new config option allows to control whether MicroPython uses its own
internal printf or not (if not, an external one should be linked in).
Accompanying this new option is the inclusion of lib/utils/printf.c in the
core list of source files, so that ports no longer need to include it
themselves.
|
| |
|
| |
|
|
|
|
|
|
| |
Arguments of an unknown type cannot be skipped and continuing to parse a
format string after encountering an unknown format specifier leads to
undefined behaviour. This patch helps to find use of unsupported formats.
|
|
|
|
|
|
|
|
| |
This extra forward slash for the starting-point directory is unnecessary
and leads to additional slashes on Max OS X which mean that the frozen
files cannot be imported.
Fixes #2374.
|
|
|
|
| |
Disable by default, enable in unix port.
|
|
|
|
|
|
| |
This type was used only for the typedef of mp_obj_t, which is now defined
by the object representation. So we can now remove this unused typedef,
to simplify the mpconfigport.h file.
|
|
|
|
|
| |
Fixes build errors such as
"../lib/utils/printf.c:43:5: error: expected parameter declarator"
|
|
|
|
| |
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
|
|
|
|
|
|
|
| |
This includes file and socket objects, backed by Unix file descriptor.
This improves compatibility with stmhal's uselect (and convenience of
use), though not completely: return value from poll.poll() is still
raw file descriptor.
|
| |
|
| |
|
|
|
|
|
|
| |
To filter out even prototypes of mp_stream_posix_*() functions, which
require POSIX types like ssize_t & off_t, which may be not available in
some ports.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows to use printf() in a any source file with unix port, for quick
debugging.
|
|
|
|
| |
Also, fix a warning text (remove "duplicate" BytesWarning).
|
| |
|
|
|
|
| |
Allows to build the library variant for other ports in parallel.
|
|
|
|
|
| |
Make variable MICROPY_SSL_AXTLS=1 should be defined to activate modussl_axtls
and link with -laxtls.
|
|
|
|
|
|
| |
The minimum thread stack size is set by pthreads (16k bytes) so we must
use that value for our minimum. The stack limit check is also adjusted
to work correctly for 32-bit builds.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Threading support is still very new so stay conservative at this point
and enable threading without the GIL. This requires users to protect
concurrent access of mutatable Python objects (eg lists) with locks at
the Python level (something you should probably do anyway). The
advantage is that there is less of a performance hit for non-threaded
code, because the VM does not need to constantly release/acquire the GIL.
In the future the GIL will be made more efficient. There is also room to
improve the efficiency of non-GIL code by not using mutex's if there is
only one thread active.
|
|
|
|
|
|
|
| |
Due to the way modern compilers work (allocating space for stack vars once
at tha start of function, and deallocating once on exit from), using
intermediate stack buffer of big size caused blockage of 4K (PATH_MAX)
on stack for the entire duration of MicroPython execution.
|
| |
|
|
|
|
| |
E.g. -X heapsize=16Kfoo, -X heapsize=1G will lead to error.
|
|
|
|
| |
By adjusting parser allocation policy.
|
| |
|
|
|
|
|
| |
But disable it for coverage build, as its extra warninsg aren't compatible
with K&R C BerkeleyDB uses.
|
|
|
|
|
| |
We rely on the port setting and adjusting the stack size so there is
enough room to recover from hitting the stack limit.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
SA_SIGINFO allows the signal handler to access more information about
the signal, especially useful in a threaded environment. The extra
information is not currently used but it may prove useful in the future.
|
|
|
|
|
| |
This patch allows any given thread to do a proper garbage collection and
scan all the pointers of all active threads.
|
|
|
|
| |
As per PEP-475.
|
| |
|
| |
|
|
|
|
| |
Has the ability to create new threads.
|
| |
|
|
|
|
|
|
|
|
|
| |
The linker flag --gc-sections is not available on the linker used on
Mac OS X which results in an error when linking micropython on Mac OS X.
Therefore move this option to the LDFLAGS_ARCH variable on non Darwin
systems. According to http://stackoverflow.com/a/17710056 the equivalent
to --gc-sections is -dead_strip thus this option is used for the
LDFLAGS_ARCH on Darwin systems.
|
| |
|