Why do executables depend on the OS but not on the CPU?
An exe contains more information than just raw machine code. The OS reads this when loading it and can figure out how it should run. When you compile you generally set a target CPU, if you don't the compiler will pick your current CPU and will restrict itself to only choosing instructions that are common to your CPU and older versions of it.
قرأ أكثر