Re:Chromium Windows builds now use Clang by default
by xorblurb on Saturday July 29, 2017 @09:08AM
(#14881028)
> Unless there's an instruction you need that doesn't have an intrinsic or you're writing something like a spin lock where instruction ordering is critical and a compiler barrier for some reason is not sufficient, there's no reason to ever write assembly.
So there are reasons to write code in assembly language.
Re:Chromium Windows builds now use Clang by default
by CoolGuySteve on Saturday July 29, 2017 @09:38AM
(#14881163)
OK, there's no reason for YOU to write code in assembly.
Unless there's an instruction you need that doesn't have an intrinsic or you're writing something like a spin lock where instruction ordering is critical and a compiler barrier for some reason is not sufficient, there's no reason to ever write assembly.
Your code won't be appreciably faster than if you tuned it in the compiler, and after a few years the compiler will integrate new instructions while your assembly just gets stale.