How do I cross-compile for a Motorola 68000? The GCC main pages list gcc -m68000 as an option http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/M680x0-Options.html#M680x0-Options, but when I do gcc -m68000 test.c it won't work (unknown option). In the past when I cross-compiled I used avr-gcc or msp-gcc, each needing a separate package to be downloaded, but I do not see the like for the m68000. Any ideas? Thanks

  • 2
    The switch does not imply that the m68000 back end is present. You should track dowm some GNU toolchain for the m68000 and download it. Then decide if you want to install into any system areas, or keep everything in your own directory and set up the environment variables to run the programs. – ubfan1 Jan 15 '13 at 5:27


In this link, I saw that gcc compiler for 68k needs to be called like "gcc-68k"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.