3 ms·
Not completely in the wilderness sure. But they also have many operating systems to consider. The other obvious ones are Linux, BSD, and, until very recently,
by zsmi 5y ago
Not completely in the wilderness sure. But they also have many operating systems to consider. The other obvious ones are Linux, BSD, and, until very recently, macOS. Are you sure it's possible to do a micro-optimization for one without nerfing the others?
- ygra 5y agoDoes the actual machine code doing computations really differ that much based on the OS? I'd guess the differences are just that you call different libraries and maybe a different calling convention, but nothing that would impact code running single-threaded without preemptions much.
- zsmi 5y agoHow the architecture handles the memory hierarchy is hugely important, but your example of calling conventions is a good one too. Keep in mind what calling conversions are: "Calling conventions act as a contract between subroutines at the assembly level." https://levelup.gitconnected.com/x86-calling-conventions-a34812afe097 https://levelup.gitconnected.com/x86-calling-conventions-a34...