Prebuilt GNU toolchain for m68k-elf questions.

This is a discussion on Prebuilt GNU toolchain for m68k-elf questions. within the Tech Board forums, part of the Community Boards category; I have downloaded this for a system using a motorola 68000. Prebuilt GNU toolchain for m68k-elf However its producing 68020 ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    166

    Prebuilt GNU toolchain for m68k-elf questions.

    I have downloaded this for a system using a motorola 68000.

    Prebuilt GNU toolchain for m68k-elf

    However its producing 68020 output.

    Code:
    (gdb) c
    Continuing.
    
    Program received signal SIGILL, Illegal instruction.
    DrawString (x=1, y=1, str=0x43a8 "Hello Jag Users") at jag.c:42
    42          DrawChar (x, y, str[cnt]);
    (gdb) disas
    Dump of assembler code for function DrawString:
       0x0000430c <+0>:     linkw %fp,#0
       0x00004310 <+4>:     moveml %d2-%d3/%a2-%a3,%sp@-
       0x00004314 <+8>:     movel %fp@(8),%d2
       0x00004318 <+12>:    movel %fp@(12),%d3
       0x0000431c <+16>:    moveal %fp@(16),%a2
       0x00004320 <+20>:    moveb %a2@,%d0
       0x00004322 <+22>:    beqs 0x433e <DrawString+50>
       0x00004324 <+24>:    addql #1,%a2
       0x00004326 <+26>:    lea %pc@(0x42c6 <DrawChar>),%a3
    => 0x0000432a <+30>:    extbl %d0
       0x0000432c <+32>:    movel %d0,%sp@-
       0x0000432e <+34>:    movel %d3,%sp@-
       0x00004330 <+36>:    movel %d2,%sp@-
       0x00004332 <+38>:    jsr %a3@
       0x00004334 <+40>:    addql #8,%d2
       0x00004336 <+42>:    moveb %a2@+,%d0
       0x00004338 <+44>:    lea %sp@(12),%sp
       0x0000433c <+48>:    bnes 0x432a <DrawString+30>
       0x0000433e <+50>:    moveml %fp@(-16),%d2-%d3/%a2-%a3
       0x00004344 <+56>:    unlk %fp
       0x00004346 <+58>:    rts
    End of assembler dump.
    (gdb)
    Short of recompiling it is there anyone who knows what flag I may need to put in the command line to make it default to 68000? I can find no instructions anywhere in the distribution.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    166
    Whoops nevermind I think I found it. I was using wrong search criteria.

    http://gcc.gnu.org/onlinedocs/gcc-4....0-Options.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Updating a vbcc compiler for m68k.
    By A34Chris in forum Tech Board
    Replies: 0
    Last Post: 03-18-2013, 05:43 PM
  2. GUI lib, toolchain, etc for my projects
    By siavoshkc in forum C++ Programming
    Replies: 13
    Last Post: 11-09-2012, 01:16 PM
  3. Toolchain Doubt
    By vsriharsha in forum Tech Board
    Replies: 4
    Last Post: 07-30-2004, 01:40 PM
  4. Opening prebuilt headers?
    By xddxogm3 in forum C++ Programming
    Replies: 3
    Last Post: 11-08-2003, 04:49 AM
  5. mac(m68k) io programming?
    By mart_man00 in forum C Programming
    Replies: 0
    Last Post: 06-27-2003, 01:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21