Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does 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.


How 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-a34...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: