macos – Attempting to assemble and run x86_64 meeting on M1


For a college course i would like to make use of x86_64 meeting (AT&T syntax) and I used to be questioning if there’s a approach to run this via rosetta 2.

Up to now I’ve set the OG terminal to run via Rosetta 2, and managed to put in gcc and gdb. Regardless of this, when I attempt to run the binary I both get:

zsh: exec format error: ./helloworld

once I run it instantly via the terminal; or:

./helloworld: ./helloworld: can not execute binary file

when I attempt to run it as follows:

arch -x86_64 ./heloworld

I’ve learn the “can not execute binary file” is an error when making an attempt to run a binary via the flawed structure, however I hoped that Rosetta may repair this… Is there something that I am lacking? Any answer for operating this binaries (aside from a VM)?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles