3 ms·
> So that means that you tell the compiler to assume that SSE is available on the target. By default GCC outputs code that's compatible with the baseline, which
by jcranmer 6y ago
> So that means that you tell the compiler to assume that SSE is available on the target. By default GCC outputs code that's compatible with the baseline, which is perfectly reasonable IMO. Same reason why -march=native is also not the default, it is assumed that you may want to ship your binaries to other computers.
If your x86 computer was made after the US invaded Iraq, it supports SSE2 instructions.
- simias 6y agoAnd I'm currently writing code for a 32bit CPU that was first introduced in 2000. It's not x86 so SSE is irrelevant, but my point is that GCC is routinely used to build millions if not billions of lines of code, they can't just YOLO-deprecate things as if it were a javascript framework.
- cozzyd 6y agoIt's also possible someone may prefer the 80-bit intermediate precision of the x87 registers. I guess.
- jcranmer 6y agolong double in either x87 or SSE mode will force the use of 80-bit fp values.