3 ms·
I personally don't think there's much value in writing assembly (vs using intrinsics), but it's been really helpful to read it. I have often used Compiler Explo
by jupp0r 2y ago
I personally don't think there's much value in writing assembly (vs using intrinsics), but it's been really helpful to read it. I have often used Compiler Explorer (https://godbolt.org/ https://godbolt.org/) to look at the assembly generated and understand optimizations that compilers perform when optimizing for performance.
- frontfor 2y agoYour commented is directly contradicted by the article. > To make multimedia processing fast. It’s very common to get a 10x or more speed improvement from writing assembly code, which is especially important when wanting to play videos in real time without stuttering.
- TinkersW 2y agoThey said they prefer intrinsics which the article says are only about 10% slower(citation needed), you misunderstood and made a comparison against scalar. Personally I'd say the only good reason to use assembly over intrinsics is having control over calling convention, for example the windows CC is absolute trash and wastes many SIMD registers.
- edward28 2y agoAnd how often are you doing multimedia processing?