Hacker News new | ask | show | jobs
by warble 486 days ago
I highly doubt it's true. I can usually approach the same speed in C if I'm working with a familiar compiler. Sometimes I can do significantly better in assembly but it's rare.

I work on bare metal embedded systems though, so maybe there's some nuance when working with bigger OS libs?

1 comments

The difference is probably that you don’t work in an environment that supports SIMD or your code can’t benefit from it.
You're correct, I don't use SIMD instructions much, but I can, and with a C compiler. So still, not sure the advantage of ASM.