6 ms·
I don't think he is suggesting patching individual programs PPC for example simply faults and traps to the OS for any number of illegal instruction or invalid a
by StillBored 4y ago
I don't think he is suggesting patching individual programs PPC for example simply faults and traps to the OS for any number of illegal instruction or invalid alignment situations (which may vary based on core implementation). Then the kernel looks at the faulting instruction, emulates it, and resumes the program. Its absolutely terrible for perf because all the internal state has to be serialized to the architecturally visible state in order to update it, and resumes.
- addaon 4y agoNope, I was very much suggesting the former. The PPC approach works, but it has significant performance costs over and above instruction emulation. I've shipped PPC software that you may have used that uses both approaches, as appropriate.
- StillBored 4y agoEek, at that point you might just as well try and ship an IR with a JIT/AOT type pass during install, first run, etc. Its possible we know each other IRL... lol