summaryrefslogtreecommitdiffstatshomepage
path: root/py/stackctrl.c
Commit message (Collapse)AuthorAge
* all: Use the name MicroPython consistently in commentsAlexander Steffen2017-07-31
| | | | | There were several different spellings of MicroPython present in comments, when there should be only one.
* py: Add MP_STATE_THREAD to hold state specific to a given thread.Damien George2016-06-28
|
* py/stackctrl: Add mp_stack_set_top() to explicitly set stack top value.Paul Sokolovsky2016-03-07
| | | | Useful for embedded targets with fixed stack layout.
* vm: Support strict stackless mode, with proper exception reporting.Paul Sokolovsky2015-04-03
| | | | | | I.e. in this mode, C stack will never be used to call a Python function, but if there's no free heap for a call, it will be reported as RuntimeError (as expected), not MemoryError.
* stackctrl: Encode "recursion depth exceeded" message as qstr.Paul Sokolovsky2015-02-15
| | | | So corresponding exception can be thrown even under tight memory conditions.
* py: Put all global state together in state structures.Damien George2015-01-07
| | | | | | This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient.
* py: Move to guarded includes, everywhere in py/ core.Damien George2015-01-01
| | | | Addresses issue #1022.
* py: Fix function type: () -> (void).Damien George2014-12-10
|
* py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.Damien George2014-08-30
| | | | Part of code cleanup, working towards resolving issue #50.
* stackctrl: Add "mp_" prefix.Paul Sokolovsky2014-07-01
|
* py: Add portable framework to query/check C stack usage.Paul Sokolovsky2014-06-27
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.