ARM first & default LDC
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Dec 30 18:35:03 UTC 2020
On Wednesday, 30 December 2020 at 18:25:41 UTC, Max Haughton
wrote:
> WASM is a stack machine IIRC whereas most compiler
> optimisations are traditionally stated as register machines so
> it would be more productive to have WASM as a traditional
> backend.
I was more thinking having the same SSA instructions/limitations.
If one can do fast SSA->WASM then one might be able to use
whatever WASM execution engine Chrome uses for JIT? Just a
thought...
> I think any algorithms that rely on DAGs are also more
> efficient with register IRs, so again it would be easy to have
> a traditional SSA IR (probably with Block arguments instead of
> phi because it's 2020) and convert to a stack machine
> afterwards.
Oh, yes, for sure use a simple register IR.
More information about the Digitalmars-d
mailing list