diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-13 20:55:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-13 20:55:54 -0800 |
commit | 7af25eb2c86d1be7d0dacf3827184df6b9d1f493 (patch) | |
tree | 75681fb6b0213c7e9510b9f5f4f90f6ab2c2023c /src/compiler.js | |
parent | 5b09129a27a5ee02f191c50f894de0e77237d392 (diff) |
notifications about compilation settings
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index 1639d4e7..a6ca0bb7 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -54,6 +54,17 @@ EXPORTED_GLOBALS = set(EXPORTED_GLOBALS); assert(!(USE_TYPED_ARRAYS === 2 && QUANTUM_SIZE !== 4), 'For USE_TYPED_ARRAYS == 2, must have normal QUANTUM_SIZE of 4'); +// Output some info and warnings based on settings + +if (!OPTIMIZE || !RELOOP || ASSERTIONS || CHECK_SIGNS || CHECK_OVERFLOWS || CHECK_ROUNDINGS || INIT_STACK || INIT_HEAP || + !SKIP_STACK_IN_SMALL || SAFE_HEAP || AUTO_OPTIMIZE || PROFILE || !DISABLE_EXCEPTION_CATCHING) { + print('// Note: Some Emscripten settings will significantly limit the speed of the generated code.'); +} + +if (CORRECT_SIGNS || CORRECT_OVERFLOWS || CORRECT_ROUNDINGS) { + print('// Note: Some Emscripten settings may limit the speed of the generated code.'); +} + // Load compiler code load('framework.js'); |