WebAssembly / spec

WebAssembly specification, reference interpreter, and test suite.
https://webassembly.github.io/spec/
Other
3.09k stars 438 forks source link

Is it different to compile codes from `neon` or `x86` SIMD? #1707

Closed ryuujo1573 closed 8 months ago

ryuujo1573 commented 8 months ago

I have some code base with SIMD support via conditional compilation. Do I need to compile them into two different .wasm files with sse/neon support?

Or it's better to port existing code to wasm_simd so as to provide maximal boost?

Thanks in advance!

rossberg commented 8 months ago

This isn't the right forum for questions like this, but unless you expect your code to run on hardware without vector instructions (where SIMD is likely slower), I'd suggest to simply ship only the SIMD version.