Hi, unfortunately those headers you are using have nothing to do with
WebAssembly and will not enable you to compile code using x86 intrinsics
and targeting WebAssembly. I've filed an issue for this here:
https://github.com/emscripten-core/emsdk/issues/309. Clang is giving you a
warning about `-msse2` because that flag only works for x86 targets; SSE2
is an x86 feature, not a WebAssembly feature. Notice that you are also
getting a large number of warnings about unrecognized builtin functions
like `__builtin_ia32_emms`. These builtin functions are used by the
mmintrin.h header you included but only exist when targeting x86, not
WebAssembly.

You can read more about using WebAssembly SIMD intrinsics here:
https://emscripten.org/docs/porting/simd.html#porting-simd-code-targeting-webassembly.
Please also keep in mind that using emulated SIMD is slower than not using
SIMD at all.

On Sat, Aug 3, 2019 at 8:02 AM Flix <[email protected]> wrote:

>
> I've just added all the related stuff to my nudge fork here
> https://github.com/Flix01/nudge (in case someone is interested).
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/53c8f539-217e-44b9-922f-722ad63078a1%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/53c8f539-217e-44b9-922f-722ad63078a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EW8q7APbHyU6catg6AhSgOWORqX011EXXL2%2B5ip7BuWrw%40mail.gmail.com.

Reply via email to