Skip to contentSkip to conversation

how can i compile C code for m68000 with gcc

DISCUSSION ahmet fazil say 2 participants 2 messages Mar 24, 2005

lore
Share & tools
lore
#0 lore raw

Hi,
I am trying to compile C code for m680x0, but i can't.
i am using my P4 1.6ghz processor, gcc version 3.3.5 and using Debian Linux 3.

I tried

         %gcc -b68000  .....
but it gave error
         gcc-3.3: couldn't run `m68000-gcc-3.3.5': No such file or directory

than i tried

         %gcc -o filex  filex.c   -m68000
again it gave error
         cc1: error: invalid option `68000'

what must i do.

#1 lore raw
Quoted 3 lines · ahmet fazil say

Hi,
I am trying to compile C code for m680x0, but i can't.
i am using my P4 1.6ghz processor, gcc version 3.3.5 and using Debian Linux 3.

You need a cross compiler, try to google for m68k cross compiler or something.

Johann

Signature · 1 line
This line is left blank intentionally