I'm trying to write a C library that automatically chooses the best available SIMD instructions at runtime. Conceptually it is simple, practically it turns out that compilers will fight you every step of the way.
-
-
I don't even think it has a lot of options here, it could generate a few extra movs, but it can't reorder beyond what the processor can reasonably fix during execution. Maybe that is why it just plainly refused to give me the intrinsics, couldn't screw me any other way.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Total noob but genuine question: would it be good if CPU manufacturers produced their own compilers for the most-used languages, tuned to their hardware? Or would it be madness?
-
Well they do, the problem is that every C compiler has its own idea of all the glue parts, so it ends up being a pretty big hassle if you want to support a bunch of different manufacturer compilers.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.