🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41421

Re: msdos to m68k cross gcc compiler

#41421
From: Kai Ruottu
Date: Wed, 27 Mar 1996 00:00
55 lines
2675 bytes
Geert Goossens <gagoosse@info.vub.ac.be> wrote:

>We want to make a cross gcc compiler on a pc to produce code for a
>Motorola 68320 board. If anybody has already done this, please tell me
>how. Can this be done directly on a pc, or does it have to be done on a
>unix machine in three steps (unix compiler, unix->dos, dos->m68k)?

 A ready-made gcc-m68k (Version 2.6.0) was at: ftp.lysator.liu.se,
/pub/msdos/m68k-gcc (or something like it..)

 But if you want to make it yourself:

 I think it's easiest to make the compiler under UNIX/Linux, using the
'Canadian Cross'-method: Compile the DOS/go32-to-m68k compiler with a
UNIX-to-DOS/go32 compiler....

 Stripped orders:

1.  Have a UNIX/Linux machine with gcc....

2.  Get the DJGPP 1.12-gcc distribution, install its header & 
     libraries to the UNIX-host at  /usr/local/i386-go32/include & lib

     - subdirs.... (The DJGPP 2.0 isn't yet very well supported as an

     cross-compiler, I think...).  Look some near SimTel - mirror,  
    e.g:    ftp.tornado.be,  /pub/SimTel/vendors/djgpp

3.  Make the UNIX-to-go32 cross-compiler :
     configure  --host=<cpu>-xxx  --target=i386-go32  
     make LANGUAGES=c
     make install

4.  Make the DOS/go32-to-m68k cross-compiler:
     configure --build=<cpu>-xxx --host=i386-go32 --target=m68k-coff
     make LANGUAGES="c c++"

5.  copy the binaries to a DOS-machine, do 'coff2exe' for all of them,
     compile 'crt0.o' for your target, etc....

If you have a SCO-compatible UNIX available (e.g. Linux with ibcs2),
you can get a ready-to-run gcc-2.6.3 cross-compiler to DOS/go32 with
djgpp-1.12 headers&libs at kuso.shef.ac.uk /pub/sco/soils, the file
name is: gc263dos.tgz (it's time since I uploaded it, so perhaps the
name is something else...)
  
>We also want to do remote debugging with gdb. What are the problems
>using this program, e.g. what do you have to do to make a stub program
>and other board dependent modifications?

 Look at ftp.cygnus.com : /pub/embedded/crossgcc/faq*  and
/pub/newlib about cross-compilers etc...   I think here you find a lot
more info... the newlib-1.7.0 distribution contains instructions for
start-ups etc. (libgloss).... the RTEMS contains a free Real-Time
Executive for m68k
Technical Details
Message-ID: <4jcia7$qtb@freenet.hut.fi>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3152E8BB.1E97@info.vub.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2d2e2c3e10a1fb83
X-Google-Attributes: gid11318c,public
From: karuottu@freenet.hut.fi (Kai Ruottu)
Subject: Re: msdos to m68k cross gcc compiler
Date: 1996/03/27
Message-ID: <4jcia7$qtb@freenet.hut.fi>
X-Deja-AN: 144585546
references: <3152E8BB.1E97@info.vub.ac.be>
organization: Freenet Finland
newsgroups: gnu.gcc.help