EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Embedded C Compiler On Linux Targeting Motorola 68K

Started by cfullinfaw December 13, 2007
Can someone point me to where I can get a download of a compiler that will
work on Linux for embedded C targeting the 68K chip? 

This is for some "legacy" code that appears to have been initially built
using a "Tasking" compiler (does that sound right?)

Thanks in advance.
Chris Fullinfaw


On 2007-12-13, cfullinfaw <cfullinfaw@bass-inc.com> wrote:

> Can someone point me to where I can get a download of a > compiler that will work on Linux for embedded C targeting the > 68K chip? > > This is for some "legacy" code that appears to have been > initially built using a "Tasking" compiler (does that sound > right?)
GCC supports the 68K. If you want to use glibc, you can use crosstool to build a toolchain: http://www.kegel.com/crosstool/ glibc may be too heavyweight for your platform. If that's the case, newlib is a bit lighter: http://sourceware.org/newlib/ Or you can just build a "bare" gcc cross compiler with no libc at all. -- Grant Edwards grante Yow! I smell a RANCID at CORN DOG! visi.com
On 2007-12-13, Grant Edwards <grante@visi.com> wrote:
> On 2007-12-13, cfullinfaw <cfullinfaw@bass-inc.com> wrote: > >> Can someone point me to where I can get a download of a >> compiler that will work on Linux for embedded C targeting the >> 68K chip? >> >> This is for some "legacy" code that appears to have been >> initially built using a "Tasking" compiler (does that sound >> right?) > > GCC supports the 68K. > > If you want to use glibc, you can use crosstool to build a > toolchain: > > http://www.kegel.com/crosstool/ > > glibc may be too heavyweight for your platform. If that's the > case, newlib is a bit lighter: > > http://sourceware.org/newlib/
Here's a good page on how to build a toolchain that uses newlib: http://gcc.gnu.org/wiki/Building%20Cross%20Toolchains%20with%20gcc -- Grant Edwards grante Yow! Mary Tyler Moore's at SEVENTH HUSBAND is wearing visi.com my DACRON TANK TOP in a cheap hotel in HONOLULU!
Op Thu, 13 Dec 2007 16:47:29 +0100 schreef cfullinfaw  
<cfullinfaw@bass-inc.com>:
> Can someone point me to where I can get a download of a compiler that > will work on Linux for embedded C targeting the 68K chip?
Are you talking about the actual MC68000 chip or some derivative? Anyway, the preferred compiler for Linux is usually GCC. There's even a Linux-m68k project: <http://www.linux-m68k.org/>.
> This is for some "legacy" code that appears to have been initially built > using a "Tasking" compiler (does that sound right?)
Yep. Note that you still might be able to acquire an old Tasking compiler from places where the sun doesn't shine (a lot). -- Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/
On Dec 13, 7:47 am, "cfullinfaw" <cfullin...@bass-inc.com> wrote:
> Can someone point me to where I can get a download of a compiler that will > work on Linux for embedded C targeting the 68K chip? > > This is for some "legacy" code that appears to have been initially built > using a "Tasking" compiler (does that sound right?) > > Thanks in advance. > Chris Fullinfaw
Tasking is now owned by Altium FWIW. Bob
On 2007-12-13, Bob <StephensDigital@gmail.com> wrote:
> On Dec 13, 7:47 am, "cfullinfaw" <cfullin...@bass-inc.com> wrote: >> Can someone point me to where I can get a download of a compiler that will >> work on Linux for embedded C targeting the 68K chip? >> >> This is for some "legacy" code that appears to have been initially built >> using a "Tasking" compiler (does that sound right?) > > Tasking is now owned by Altium FWIW.
And they don't support Linux, only Windows and Solaris. If you're really in a bind, you I suppose could run Windows or Solaris on a VM... -- Grant Edwards grante Yow! This is a NO-FRILLS at flight -- hold th' CANADIAN visi.com BACON!!
On Thu, 13 Dec 2007 09:47:29 -0600, "cfullinfaw" <cfullinfaw@bass-inc.com>
wrote:

>Can someone point me to where I can get a download of a compiler that will >work on Linux for embedded C targeting the 68K chip?
There are tons of references for building gcc as a crosscompiler. Just google it. Mit freundlichen Gr&#4294967295;&#4294967295;en Frank-Christian Kr&#4294967295;gel
cfullinfaw wrote:
> Can someone point me to where I can get a download of a compiler that will > work on Linux for embedded C targeting the 68K chip? > > This is for some "legacy" code that appears to have been initially built > using a "Tasking" compiler (does that sound right?) > > Thanks in advance. > Chris Fullinfaw > >
You can get packages of gcc for the m68k/ColdFire from www.codesourcery.com, either as pre-build binaries or as source code to build yourself. Their packages are a bit newer than the standard FSF gcc tree. There will always be a certain amount of porting between compilers, however - things like embedded assembly, toolchain-specific header files and libraries, and low-level interrupt handling will be different.
In message <13m3330oj4khvd5@corp.supernews.com>, Grant Edwards 
<grante@visi.com> writes
>On 2007-12-13, Bob <StephensDigital@gmail.com> wrote: >> On Dec 13, 7:47 am, "cfullinfaw" <cfullin...@bass-inc.com> wrote: >>> Can someone point me to where I can get a download of a compiler that will >>> work on Linux for embedded C targeting the 68K chip? >>> >>> This is for some "legacy" code that appears to have been initially built >>> using a "Tasking" compiler (does that sound right?) >> >> Tasking is now owned by Altium FWIW. > >And they don't support Linux, only Windows and Solaris. >If you're really in a bind, you I suppose could run Windows or >Solaris on a VM...
You could of course remove the Linux and run the Free Solaris from Sun -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
On 2007-12-14, Chris Hills <chris@phaedsys.org> wrote:
> In message <13m3330oj4khvd5@corp.supernews.com>, Grant Edwards ><grante@visi.com> writes >>On 2007-12-13, Bob <StephensDigital@gmail.com> wrote: >>> On Dec 13, 7:47 am, "cfullinfaw" <cfullin...@bass-inc.com> wrote: >>>> Can someone point me to where I can get a download of a compiler that will >>>> work on Linux for embedded C targeting the 68K chip? >>>> >>>> This is for some "legacy" code that appears to have been initially built >>>> using a "Tasking" compiler (does that sound right?) >>> >>> Tasking is now owned by Altium FWIW. >> >>And they don't support Linux, only Windows and Solaris. >>If you're really in a bind, you I suppose could run Windows or >>Solaris on a VM... > > You could of course remove the Linux and run the Free Solaris from Sun
Before doing that you might want to check with to see if IA32 Solaris is supported by Altium or not. It could be that when Altium says Sun/Solaris what they mean is SPARC/Solaris. Better yet, send them a PO for an IA32 Linux version. When somebody calls and tells you they have a Solaris version but not a Linux version, thell them you saw that but thought they were joking. It's about time they pulled their head out of the sand and joined the rest of us in the 21st Century. I'll admit that there might be a business case for doing like IAR does and supporting Windows and not Unix. But to support Windows and Solaris instead of Windows and Linux seems like a decision that hasn't made sense for over a decade. -- Grant Edwards grante Yow! Did something bad at happen or am I in a visi.com drive-in movie??

The 2024 Embedded Online Conference