News for hackers. Stuff that matters.
Re:Exploring SIMD performance improvements in WebAssembly (2... by jedisct1 on Wednesday February 02, 2022 @07:17PM (#30186416)
To compile code to WebAssembly with SIMD instructions, just use the generic+simd128 CPU target:

    zig cc  -Ofast --target=wasm32-wasi -mcpu=generic+simd128 example.c
    zig c++ -Ofast --target=wasm32-wasi -mcpu=generic+simd128 example.cpp
Or with a build file:

    zig build -Drelease-fast -Dtarget=wasm32-wasi -Dcpu=generic+simd128

There are no comments on this comment yet.