Hacker News new | ask | show | jobs
by StefanHamminga 2203 days ago
I suppose they'll leverage 'function multi-version'[1], as Clear Linux already does[2] to enable extra instructions on the big cores.

[1]: `target_clones` -> https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attribute...

[2]: https://github.com/clearlinux/make-fmv-patch

2 comments

That seems hard to do with preemptive scheduling. AFAIK, the decision is on function level, and done at startup. Even if you can decide on call-time, it's only function level, and the preemption can happen mid-function.
That only works if your code is never migrated between cores.