🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #84

Re: Porting Amiga-gcc to linux

#84
From: Marc Espie
Date: Fri, 13 Oct 1995 01:16
40 lines
2400 bytes
In article <DG754E.4A8@freenet.carleton.ca>,
Trevor Boicey <ae718@FreeNet.Carleton.CA> wrote:

>  I am looking to generate Amiga binaries on a linux machine using GCC.

>  I am developing software that runs on both platforms. Linux is
>my preferred development OS, so my current system involves getting
>it to work under linux, then modeming it over to my amiga and
>compiling it with SAS/C. Then modeming the executable back for archiving.

>  I am thinking about trying to compile amiga gcc on my linux box, with
>the idea being that I could run it on linux to generate a binary that
>should be Amiga runnable. Thus eliminating the back and forth and
>extra compile step.

>  Has this been done? Can this work?
>--
Yes, this does work. gcc can be configured as a cross-compiler, and has been
in the recent past, for SparcStations for instance.

You will probably need to install gcc on your amiga first, just to get 
everything you need (link libraries, especially libamiga.a, might be very
important...). Don't forget the source tree, as you will need to reconfigure
and recompile to get a running cross-compiler under linux... it is even 
explained in the amiga documentation.

I'm afraid you will still need to use SAS/C though. 
As a programmer, I've got a big project that is developped under Unix, and
that I port back to AmigaDos from time to time. I ALWAYS find some bugs on
my amiga that slipped through in the Unix version: considering Unix memory
management, some errors don't show under Unix, and become deadly under
amigados (I believe that AmigaDos is a better system, precisely because
of that. It is much less forgiving of sloppy programming than Unix).
... and don't forget that we still don't have gdb under amigados!

-- 
[nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
microsoft network is EXPLICITLY forbidden to redistribute this message.
`Moon purismu powa, make up.... Tsuki ni kawatte, oshiokyo !'
	Marc Espie (Marc.Espie@ens.fr)
Technical Details
Message-ID: <45kema$dqh@nef.ens.fr>
Path: arc1-ca.pugleaf.net!nef.ens.fr!lotus!espie
References: <DG754E.4A8@freenet.carleton.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nef.ens.fr!lotus!espie
From: espie@lotus.ens.fr (Marc Espie)
Newsgroups: comp.os.linux.misc,gnu.gcc.help,comp.sys.amiga.programmer
Subject: Re: Porting Amiga-gcc to linux
Date: 13 Oct 1995 01:16:58 GMT
Organization: Ecole Normale Superieure, PARIS, France
Message-ID: <45kema$dqh@nef.ens.fr>
References: <DG754E.4A8@freenet.carleton.ca>
NNTP-Posting-Host: lotus-gw.ens.fr