4 ms·
I wonder how it deals with intrinsics for optimization (SSE and the like), does it fail to compile, or maybe WASM has some support, or it's completely lost in t
by kgeist 5y ago
I wonder how it deals with intrinsics for optimization (SSE and the like), does it fail to compile, or maybe WASM has some support, or it's completely lost in translation?
- azakai 5y agoFor something like SSE to work you'd need both wasm and wasm2c to support it. Wasm doesn't support all of SSE, but wasm does have SIMD support which is a portable subset of common SIMD instructions. You may lose some performance there, but wasm is adding more instructions to help (see "relaxed-simd"). There are also headers to help translate between SSE and wasm SIMD for existing code where possible. wasm2c does have support for wasm SIMD, although I believe it is not 100% complete yet.