5.2.0f3 increasing TOTAL_MEMORY error

Hello,
I tried to compile an existing webgl project with new version 5.2.0 and i get this error
“increasing TOTAL_MEMORY to 1006632960 to be compliant with the asm.js spec (and given that TOTAL_STACK=5242880)”
I tried to increase the memory up to 2GB but the error remains.
Can anyone help me?

It’s ok to ignore that message: it is automatically increasing memory to conform to the spec, which requires that it be a multiple of 16MB.

@kripken interesting, do you know why?

Yes, it’s useful for the size of memory to fit into an ARM immediate value, for bounds checks. And immediate values on ARM are encoded in a limited way, but at least anything that is a multiple of 16MB can fit.

1 Like

Thanks for the explanation @kripken