diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-04 18:19:37 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-04 18:19:37 -0500 |
commit | 1968ba1aa8a899193483c917e8c2534a4836e4fa (patch) | |
tree | 32344c67e35d7bbf410ed66517ac23549fffcc31 /src | |
parent | 42c6bbe2eaa2f1ceedb8c0b9d4d44bb8b676dcb8 (diff) |
WARN_UNALIGNED option for fastcomp
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index 1cfb4030..8f3ef70b 100644 --- a/src/settings.js +++ b/src/settings.js @@ -104,6 +104,9 @@ var FORCE_ALIGNED_MEMORY = 0; // If enabled, assumes all reads and writes are fu // for ways to help find places in your code where unaligned reads/writes are done - // you might be able to refactor your codebase to prevent them, which leads to // smaller and faster code, or even the option to turn this flag on. +var WARN_UNALIGNED = 1; // Warn at compile time about instructions that LLVM tells us are not fully aligned. + // This is useful to find places in your code where you might refactor to ensure proper + // alignment. (this option is fastcomp-only) 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 |