Rosetta 2

  • 2 Replies
  • 72 Views
*

FlatAssembler

  • 675
  • Not a FE-er
Rosetta 2
« on: April 25, 2024, 04:48:31 AM »
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]
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.
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory:

Re: Rosetta 2
« Reply #1 on: April 25, 2024, 04:57:07 AM »
You are a strange fruit.
"I'm not entirely sure who this guy is, but JimmyTheLobster is clearly a genius.  Probably one of the smartest arthropods  of his generation." - JimmyTheCrab

Quote from: bulmabriefs144
The woke left have tried to erase photosynthesis

*

FlatAssembler

  • 675
  • Not a FE-er
Re: Rosetta 2
« Reply #2 on: April 25, 2024, 08:10:56 AM »
You are a strange fruit.

What does that mean?
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory: