3 ms·
The hard part seems to be metadata, or information about the program rather than the program itself. Rosetta will translate the program but it doesn't know abou
by jeffbee 6y ago
The hard part seems to be metadata, or information about the program rather than the program itself. Rosetta will translate the program but it doesn't know about the metadata, so you have a referential integrity problem, seemingly. For example what is going to happen if a program running under Rosetta uses setitimer to deliver SIGPROF? What's in si_addr?
- underdeserver 6y agoYou'll still have the address of the fault in si_addr. Addresses are addresses, both in AMD64 and ARM64. What's the difference?
- jeffbee 6y agoMaybe I'm just imagining things, but if I have a map from PC to function or line and Rosetta rewrites all my functions then I have a problem unless the Rosetta output is by some miracle exactly the same length as the input.
- monocasa 6y agoThey can keep a translation table around for fixing up what were the original instruction addresses. I've done that for writing emulators before. It ends up looking like DWARF.