aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-24 15:03:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-24 15:03:43 -0700
commit66806f8f11bc4df3740ac3f6d65b3ccc70e08c40 (patch)
treea105440ee5e20dae41f44c44b1802ba2610e12b7
parenta345373110006c8f7f1a21498241b526053b40bc (diff)
comments in settings.js
-rw-r--r--src/settings.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/settings.js b/src/settings.js
index fe532bda..76dc25a1 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -53,9 +53,11 @@ var FAST_MEMORY = 2*1024*1024; // The amount of memory to initialize to 0. This
var MICRO_OPTS = 1; // Various micro-optimizations, like nativizing variables
var RELOOP = 0; // Recreate js native loops from llvm data
var USE_TYPED_ARRAYS = 2; // Use typed arrays for the heap. See https://github.com/kripken/emscripten/wiki/Code-Generation-Modes/
+ // 0 means no typed arrays are used.
// 1 has two heaps, IHEAP (int32) and FHEAP (double),
// and addresses there are a match for normal addresses.
- // 2 is a single heap, accessible through views as int8, int32, etc.
+ // 2 is a single heap, accessible through views as int8, int32, etc. This is
+ // the recommended mode both for performance and for compatibility.
var USE_FHEAP = 1; // Relevant in USE_TYPED_ARRAYS == 1. If this is disabled, only IHEAP will be used, and FHEAP
// not generated at all. This is useful if your code is 100% ints without floats or doubles
var DOUBLE_MODE = 1; // How to load and store 64-bit doubles. Without typed arrays or in typed array mode 1,