summaryrefslogtreecommitdiffstatshomepage
path: root/bare-arm
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-01 23:30:53 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-07 20:33:00 +0000
commitb4b10fd350852e321624d74983cca286091b55a1 (patch)
tree7ac4aa40d70be0170a61f649e9d73c42faa4ba33 /bare-arm
parentad2307c92c15f0aa90dbd0741fd2538719d0b5e1 (diff)
downloadmicropython-b4b10fd350852e321624d74983cca286091b55a1.tar.gz
micropython-b4b10fd350852e321624d74983cca286091b55a1.zip
py: Put all global state together in state structures.
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.
Diffstat (limited to 'bare-arm')
-rw-r--r--bare-arm/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bare-arm/main.c b/bare-arm/main.c
index 8ee4447e87..fb9ec60379 100644
--- a/bare-arm/main.c
+++ b/bare-arm/main.c
@@ -5,8 +5,8 @@
#include "py/nlr.h"
#include "py/parsehelper.h"
#include "py/compile.h"
-#include "py/runtime0.h"
#include "py/runtime.h"
+#include "py/stackctrl.h"
#include "py/repl.h"
#include "py/pfenv.h"
@@ -48,6 +48,7 @@ void do_str(const char *src) {
}
int main(int argc, char **argv) {
+ mp_stack_set_limit(10240);
mp_init();
do_str("print('hello world!', list(x+1 for x in range(10)), end='eol\n')");
mp_deinit();