3 ms·
The trouble with machine conversion is the machine cannot know which edge cases and quirks the code relies on, and which it does not. For example, if translatin
by WalterBright 6y ago
The trouble with machine conversion is the machine cannot know which edge cases and quirks the code relies on, and which it does not. For example, if translating C, does the program rely on two globals sitting next to each other in memory? (Yes, this happens, I did it myself earlier in my career.)
I've done many translations of large programs from one language to another. This includes two large assembler programs that I didn't write into nice, clean C. I don't see any way a machine could determine what effects were important and what weren't.
- WalterBright 6y agoBTW, I found out my program relied on two globals being next to each other when I translated it to another language and it didn't work :-)