Huh, I wonder why one must put it in such a difficult to understand way :o. Deciphered, the asm.js heap size must be:
- a power of two, or a multiple of 16MB. - and at least 4KB, and at most 4GB. 2015-01-26 19:31 GMT+02:00 Dan Gohman <[email protected]>: > 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. > -- 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.
