[Files] 68k hosted gcc for x86-AROS ported | ANN.lu |
Posted on 19-May-2004 23:56 GMT by whoosh | 20 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 |
68k hosted gcc for x86-AROS ported : Comment 17 of 20 | ANN.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, |
|
List of all comments to this article (continued) |
|
- User Menu
-
- About ANN archives
- The ANN archives is powered by #AmigaZeux. It was updated daily (news last: 22-Oct-2004; comments last: 18-May-2005).
ANN.lu was created, previously owned and maintained by Christian Kemp, www.ckemp.com.
- Contribute
- Not possible at this time!
- Search ANN archives
- Advanced search
- Hosting
- ANN.lu was hosted by Dreamhost. Sign up through this link, mention "ckemp" as referrer and he will get a 10% commission on any account you purchase.
Please show your appreciation for any past, present and future work on ANN.lu by making a contribution via PayPal.
|