Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I cross-compile for a Motorola 68000? The GCC main pages list gcc -m68000 as an option, 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

share|improve this question
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"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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