3 ms·
> Moreover, can you influence GCC over what instructions it emits? On Gentoo for example, you can setup your make file so that the while system is compiled with
by stefantalpalaru 4y ago
> Moreover, can you influence GCC over what instructions it emits? On Gentoo for example, you can setup your make file so that the while system is compiled with your specific processor in mind.
Yes, of course. On a Gentoo ~amd64 system where everything is compiled with "-O3 -march=native", I get 1311 different ASM instructions: https://gist.github.com/stefantalpalaru/932b6d0ef439756e825df0c05a586eea https://gist.github.com/stefantalpalaru/932b6d0ef439756e825d...
- _8j50 4y agoWow, that is fascinating. I need to play with this myself, I never heard of some of those like prefetcht0.