aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-19 18:21:21 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-19 18:21:21 -0700
commitd318f7adda7b622b51e655d04dbac1161d1a82c4 (patch)
treecf3acb649e397f62c44d77511bcfb4598222f936 /src/settings.js
parent95022360758d466485157c21bdda1c9ec1aaf97d (diff)
SKIP_STACK_IN_SMALL option
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 7fd9f17c..0243a191 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -38,6 +38,11 @@ INIT_HEAP = 0; // Whether to initialize memory anywhere other than the stack to
OPTIMIZE = 0; // Optimize llvm operations into js commands
RELOOP = 0; // Recreate js native loops from llvm data
USE_TYPED_ARRAYS = 0; // Try to use typed arrays for the heap
+SKIP_STACK_IN_SMALL = 1; // When enabled, does not push/pop the stack at all in
+ // functions that have no basic stack usage. But, they
+ // may allocate stack later, and in a loop, this can be
+ // very bad. In particular, when debugging, printf()ing
+ // a lot can exhaust the stack very fast, with this option.
// Generated code debugging options
SAFE_HEAP = 0; // Check each write to the heap against a list of blocked addresses