It's specified in the Linking section of the asm.js spec [0]: the heap object's byteLength must be either pow(2, n) for n in [12, 24) or pow(2, 24) * n for n ≥ 1.
[0] http://asmjs.org/spec/latest/#linking-0 Dan On Mon, Jan 26, 2015 at 2:38 AM, Stéphane Letz <[email protected]> wrote: > Hi, > > When compiling for asm.js without Emscripten, we need to give the asm.js > module a valid heap size when starting it. Its sees that only some values > are possible (like 0x3000000 when running in Firefox). > > How is this valid heap size for asm.js module computed? Is there a > specification for that somewhere? > > Thanks. > > Stéphane Letz > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
