3 ms·
It seems to me that this is only a problem when you try to write wasm directly. If you compile from rust then this analysis is already done for you on a higher
by trumpeta 6y ago
It seems to me that this is only a problem when you try to write wasm directly. If you compile from rust then this analysis is already done for you on a higher level. or what am i missing?
- vertex-four 6y agoAs far as I can tell, this article refers to the difficulty in compiling wasm into native code to run, not compiling code into wasm.
- francasso 6y agoThe issue is that all the analysis the rust compiler did is not present/inferable from the wasm artifact. Since the compiler that has to translate wasm to machine code cannot make more assumptions than those that are in the wasm specification, it has to redo the analysis for certain things. That is time consuming for an optimizing compiler (how much really I don't know), and I think impossible for a streaming compiler.