News for hackers. Stuff that matters.
Re:KolibriOS – operating system written entirely in assembly... by p0nce on Wednesday April 15, 2020 @02:10AM (#22875072)
It depends. If your target is x86/x86_64 and the compiler has a LLVM or Intel backend, I've found that beating the compiler is almost impossible and largely futile. I took a long time to accept this since I know asm and the x86 instructions well.
Re:KolibriOS – operating system written entirely in assembly... by pjmlp on Wednesday April 15, 2020 @02:21AM (#22875122)
That is my point of view as well, but then again the kind of code I write also does quite well with bounds checking enabled.

So I never had to deep dive into stuff like writing AVX by hand, just basing my remark on some comments that occasionally read about.

Re:KolibriOS – operating system written entirely in assembly... by saagarjha on Wednesday April 15, 2020 @05:31AM (#22875930)
Compiler auto-vectorization is fairly easy to beat as it won’t even try when loop invariants are mildly complicated.