LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Can gcc cross-compile C code to M68K Assembly? (https://www.linuxquestions.org/questions/programming-9/can-gcc-cross-compile-c-code-to-m68k-assembly-305624/)

lowpro2k3 03-24-2005 03:34 PM

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).

thanks.

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...

jtshaw 03-25-2005 07:50 AM

It sure can. Last time I built an m68k cross compiler I used these instructions. It wouldn't surprise me if you could find a pre-built slackware package around either.


All times are GMT -5. The time now is 11:44 AM.