GCC -m32 -S under Rosetta still gives ARM assembly. I'm learning Assembly in my computer architecture class, and IA32 is ahat we're learning. Is there a way to run the GCC compiler itself in Rosetta?
if you set terminal to run under rosetta everything u run in it will be via x86 so if you were to download gcc and recompile it say via brew it would give u the x86 ver of it.
also enjoy that stupid 16 byte aligned stack :P I found it much easier to learn ASM under windows or linux osx has some rather annoying differences.
3
u/jeramyfromthefuture Mar 31 '21
change ur terminal to use rosetta , do as you normally do on an intel MAC.
Also wtf are you doing it in ia32 it should be x86_64
maybe invest in an old shit core duo based pc for 30 pounds and stop using a mac for such stupidness.
3
u/AlarmDozer Mar 30 '21
Shouldn’t you cross-compile into aarch64? IIRC, M1 is an ARM chip.
3
u/bobotwf Mar 31 '21
Maybe if you gave us fewer details we could help you.