Can gcc cross-compile C code to M68K Assembly?
I have a class in this so it would be really handy to be able to write c/c++ code and compile it into Motorolla M68000 assembly for me to read/view. The M68000 only has 8 data registers, and 7 address registers (plus user/supervisor stack pointer).
edit: btw, would the command be the same for C++ code? I'm not good at C so I'd rather use c++/g++ instead of c/gcc, but I could learn enough C if g++ wont do the cross-compile.
Even if I have to get another compiler I wouldn't mind.
A 68K emulator would be a nice tool to have too, I heard gdb can do it but I've never really used gdb before...
Last edited by lowpro2k3; 03-24-2005 at 04:36 PM.