diff options
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index e4899215..4017ad98 100644 --- a/src/settings.js +++ b/src/settings.js @@ -72,6 +72,10 @@ var DOUBLE_MODE = 1; // How to load and store 64-bit doubles. Without typed arra // then load it aligned, and that load-store will make JS engines alter it if it is being // stored to a typed array for security reasons. That will 'fix' the number from being a // NaN or an infinite number. +var UNALIGNED_MEMORY = 0; // If enabled, all memory accesses are assumed to be unaligned. (This only matters in + // typed arrays mode 2 where alignment is relevant.) In unaligned memory mode, you + // can run nonportable code that typically would break in JS (or on ARM for that + // matter, which also cannot do unaligned reads/writes), at the cost of slowness var PRECISE_I64_MATH = 1; // If enabled, i64 addition etc. is emulated - which is slow but precise. If disabled, // we use the 'double trick' which is fast but incurs rounding at high values. // Note that we do not catch 32-bit multiplication by default (which must be done in @@ -124,6 +128,7 @@ var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). // emscripten_run_script("Runtime.debug = ...;"); var GL_DEBUG = 0; // Print out all calls into WebGL. As with LIBRARY_DEBUG, you can set a runtime // option, in this case GL.debug. +var SOCKET_DEBUG = 0; // Log out socket/network data transfer. var PROFILE_MAIN_LOOP = 0; // Profile the function called in set_main_loop @@ -197,6 +202,10 @@ var INCLUDE_FULL_LIBRARY = 0; // Whether to include the whole library rather tha // functions used by the generated code. This is needed when // dynamically loading modules that make use of runtime // library functions that are not used in the main module. + // Note that this includes js libraries but *not* C. You will + // need the main file to include all needed C libraries. For + // example, if a library uses malloc or new, you will need + // to use those in the main file too to link in dlmalloc. var SHELL_FILE = 0; // set this to a string to override the shell file used |