25-Apr-2024 04:50 GMT.
UNDER CONSTRUCTION
[Files] 68k hosted gcc for x86-AROS portedANN.lu
Posted on 19-May-2004 23:56 GMT by whoosh20 comments
View flat
View list
On a 68k AmigaOS system such as A1200 or WinUAE or Morphos or Cloanto or OS4 or Amithlon, cross compile programs to x86-AROS, via this gcc-3.3.1 cross compiler. Click here This cross compiler was built entirely on 68k WinUAE by combining the existing sources of gcc-3.3.1-aros and 68k hosted gcc-3.3.1-amigaos,

The c compiler part has been tested out on several graphics demos from the archives on the AROS site: blackhole, dawafire, firework,flamme, metaballs, newvox, parallax,

the binaries were generated via 68k WinUAE using this cross compiler and the binaries ran correctly via a i686 compile on my PC.

Hello world also ran correctly. The c++ part of the compiler is fully untested, so any feedback on it will be of interest.

People talk about preventing the AmigaOS alternatives fragmenting, well cross compilers are how you prevent fragmentation: you can generate binaries for machines you dont have.

Previously you needed Linux to develop for AROS although there is also an AROS-native gcc,

List of all comments to this article
Sorted by date, most recent at bottom
Comment 1Anonymous19-May-2004 22:50 GMT
Comment 2Crumb // AATRegistered user20-May-2004 05:04 GMT
Comment 3Anonymous20-May-2004 06:15 GMT
Comment 4Frederik20-May-2004 07:48 GMT
Comment 5Amon_ReRegistered user20-May-2004 08:17 GMT
Comment 6Anonymous20-May-2004 14:19 GMT
Comment 7Anonymous20-May-2004 19:31 GMT
Comment 8whoosh20-May-2004 19:40 GMT
Comment 9whoosh20-May-2004 20:02 GMT
Comment 10top20-May-2004 20:32 GMT
Comment 11whoosh20-May-2004 20:46 GMT
Comment 12Anonymous20-May-2004 22:44 GMT
Comment 13Crumb // AATRegistered user21-May-2004 05:13 GMT
Comment 14Crumb // AATRegistered user21-May-2004 05:18 GMT
Comment 15whoosh21-May-2004 18:57 GMT
Comment 16whoosh21-May-2004 19:45 GMT
68k hosted gcc for x86-AROS ported : Comment 17 of 20ANN.lu
Posted by whoosh on 22-May-2004 20:11 GMT
In reply to Comment 2 (Crumb // AAT):
@Crumb

>I tried once with gcc-68k and gcc-Amithlon but it seems to overwrite some
>files... it would be great if you added a txt explaining how to have all the
>targets in the same gcc installation


I've now looked into this more carefully, what I have found out is:


1. gcc-morphos on www.aminet is incomplete,


2. binutils and gcc of ftp.geekgadgets.org have wrongly named things,


3. It looks like you can merge gcc-amithlon, gcc-morphos, gcc-amigaos,
but only if you download everything from:


http://www.lysator.liu.se/~lcs/files/gg-cross/tar


basically you will have to install over 20 things from this directory,
the amigaos things from this directory appear to be correctly done,


however the archives here are not in gg: format, so for each archive
you will have to decompress it individually, fix any links if you use
a filesystem which doesnt have links, then you would copy a subdirectory,
/opt/gg to gg: watching out for overwrites eg


sh


cd gg-????????/opt/gg


cp -r -p -v -i . /gg


is an interactive copy ie queries you on any repeats,


make a full backup of gg: before attempting this,
I have just begun on this but what I am doing is recompressing
all the archives into gg: format via .tar.bz2, once done I will
then decompress these to gg:,


I use 2 scripts: one decompresses, I then fix by hand if necessary
any links and then the second script creates 2 archives one for gg:
and the other recompresses the docs from ???????/usr to another directory
and then deletes the decompression,

my 68k-x-x86-aros gcc should fit in with either scheme,


At the centre of the problems is that 68k gcc and binutils use bin/as instead of
something like bin/m68k-amigaos-as etc:


binutils-2.9.1-bin.tgz:


bin/addr2line


bin/ar


bin/as


bin/c++filt


bin/gasp


bin/gprof


bin/ld


bin/nm


bin/objcopy


bin/objdump


bin/ranlib


bin/size


bin/strings


bin/strip



possibly just renaming bin/as etc in binutils and some things in
gcc will fix all the problems, not totally sure though,


gcc-2.95.3-4 from ftp.geekgadgets.org has the following wrong names:

bin/c++, bin/cpp, bin/g++, bin/gcc, bin/gcov

I think all these need to be prefixed probably by m68k-amigaos-
so eg bin/g++ would become bin/m68k-amigaos-g++


I will try to find out what the exact changes required are,
Jump...
#18 whoosh
TopPrevious commentNext commentbottom
List of all comments to this article (continued)
Comment 18whoosh22-May-2004 20:46 GMT
Comment 19whoosh23-May-2004 16:26 GMT
Comment 20whoosh24-May-2004 18:55 GMT
Back to Top