Article View: comp.os.linux.misc
Article #82Re: Porting Amiga-gcc to linux
From: Michal Jaegermann
Date: Tue, 10 Oct 1995 18:03
Date: Tue, 10 Oct 1995 18:03
31 lines
1979 bytes
1979 bytes
Guillaume Laurent (glaurent@nissart.lagaude.ibm.com) wrote: : I don't know if gcc can do that, Yes, it can. For years gcc based cross-compilers for Atari ST are running on different platforms. Configuring gcc for a cross-compilation is directly supported in gcc sources. : be compiling gcc itself, configured for the amiga, on a linux box : would produce a compiler that would generate amiga code. But what : would happen when linking ?? You need a special linker which will produce Amiga binaries. : You need the amiga libraries on your : linux box as well, can a simple copy just work ? Likely. This depends on your (cross)linker. It may be happier with another format. If you have library sources and a cross-compiler than this is not a big problem. You just have to recompile libraries. The only point is that your compiler and linker have to agree what an intermediate format is. Once you decided on that you need also a bunch of auxiliary tools (librarian, stripper, symbol table lister, things like that - i.e. ar, strip, nm, ... for a cross-compiler). In summary: this is a fair amount of work if you are doing that from scratch but this is definitely possible. Bits are bits and a compiler is just producing a pile of them. It is only OS and its loader which later tries to make some sense of that. :-) Michal
Technical Details
Message-ID:
<45ech6$10ca@pulp.ucs.ualberta.ca>Path:
arc1-ca.pugleaf.net!rover.ucs.ualberta.ca!gortel!michalReferences:
<DG754E.4A8@freenet.carleton.ca> <7k20slwnk0.fsf@nissart.lagaude.ibm.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!rover.ucs.ualberta.ca!gortel!michal From: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Newsgroups: comp.os.linux.misc,gnu.gcc.help,comp.sys.amiga.programmer Subject: Re: Porting Amiga-gcc to linux Followup-To: comp.os.linux.misc,gnu.gcc.help,comp.sys.amiga.programmer Date: 10 Oct 1995 18:03:18 GMT Organization: Disorganized Bits Message-ID: <45ech6$10ca@pulp.ucs.ualberta.ca> References: <DG754E.4A8@freenet.carleton.ca> <7k20slwnk0.fsf@nissart.lagaude.ibm.com> Reply-To: michal@gortel.phys.ualberta.ca NNTP-Posting-Host: gortel.phys.ualberta.ca X-Newsreader: TIN [version 1.2 PL2]