Is it reasonable to believe Rosetta 2 exists?

General philosophy message board for Discussion and debate on other philosophical issues not directly related to veganism. Metaphysics, religion, theist vs. atheist debates, politics, general science discussion, etc.
Post Reply
teo123
Master of the Forum
Posts: 1449
Joined: Tue Oct 27, 2015 3:46 pm
Diet: Vegan

Is it reasonable to believe Rosetta 2 exists?

Post by teo123 »

What do you guys think, does Rosetta 2 (the supposed program that translates x86 machine code to ARM machine code, allowing ARM-based Macs to run programs for older x86-based Macs) really exist, or is it a part of a conspiracy? I don't see how it could possibly work.
First of all, in order to do that, you need to accurately disassemble x86 machine code. But that's not easy, because x86 machine code allows you to insert strings inside the program and "jmp" over them. When writing x86 assembly code, I often do stuff like:

Code: Select all

jmp hello_world$
hello_world:
db "Hello world!",10,0
hello_world$:
And disassemblers will not disassemble that correctly.
And once you disassemble the program, well, there comes another huge problem. The x86 instructions do not map into ARM instructions. This is especially true for FPU instructions (that deal with decimal numbers). FPU instructions in x86 are stack-based, whereas the FPU instructions in ARM are register-based. It seems obvious to me that there is no algorithm which could translate x86 FPU instructions to ARM on-the-fly. If there were, I could easily make my ArithmeticExpressionCompiler output ARM assembly, and not just x86 assembly.
I have a Bachelor Degree in Computer Engineering, so I can be considered an expert in things like this. This is not exactly like when I was denying the 1969 Moon Landing without having a clue about rocket science.
Post Reply