web page last updated Tuesday 1st June 2004

68k Hosted cross compiler for generating x86-AROS binaries

============= new info: ====================

======== Tuesday 1st June 2004 ================

I think there may be a hardwired path in the binary download, so you may need to decompress the download twice, first to gg: as usual, and then to: ports2:again/gcc-3.3.1-double-install

eg via:

assign ports2: somewhere
makedir ports2:again
makedir ports2:again/gcc-3.3.1-double-install

And now decompress here,

I will try and fix this problem, but I think I will have to rebuild from scratch,

======== Thursday 20th May 2004 ================

Forgot these in initial release!

I forgot to include i686-pc-aros-collect in the download for the 68k-amigaos hosted cross compiler for x86-aros, so reread the material for 68k-arosx86-collect.lha and the updated readme

Also new is info on how to set up the cross compiler from scratch.


By combining the gcc-3.3.1-aros sources with the gcc-3.3.3-68k-amigaos sources I have generated a 68020-nofpu-amigaos hosted cross compiler gcc-3.3.1 for generating x86-AROS binaries. ie you run it on 68k AmigaOS and generate x86-AROS programs.

So people on A1200, A4000, WinUAE, Morphos, Amithlon, OS4 etc can port their programs to generate x86-aros binaries, without requiring to have AROS or a PC or Linux.

I have also ported 68020 amigaos hosted binutils-2.14 for x86-AROS, this is required for the cross compiler gcc to run.

I have tested this out on several AROS graphics demos and all binaries ran correctly on AROS: blackhole, dawafire, firework, flamme, metaballs, newvox and parallax. Several of these are space-age demos so its worth trying them out with this cross compiler. Also hello world compiled correctly.

The c++ part of the port is fully untested, so any feedback on it would be useful.

As I dont have much webspace left I have used .tar.bz2 compression, there are instructions in the readme file on how you decompress these, you will need bzip2 to decompress the files.

So download the readme and other archives and follow the instructions in the readme. You will need to download a further archive from the AROS website to obtain the includes and linker libraries: see the readme for this. The cross compiler will then function fully from within a Geekgadgets environment.

68k-arosx86-gcc-331-readme 3083

68k-arosx86-gcc-331-cc1.tar.bz2 2719333

68k-arosx86-gcc-331.tar.bz2 3768782

68k-arosx86-binutils214.tar.bz2 3513114

68k-arosx86-gcc-331-src.lha 99195

68k-arosx86-collect.lha 10774

What to do if you dont have a geekgadgets setup?

ie getting this cross compiler functioning from scratch.




Download Boot.lha,

Now click on the directory "bin",


pdksh-5.2.12-bin.tgz, ixemul-48.0-bin.tgz, gzip-1.2.4-bin.tgz, fifolib-38.4-bin.tgz, fileutils-4.0-bin.tgz

With the downloads in downloads: let somewhere: be a directory to use for Geekgadgets, let this have eg 200Mb free, do the following shell commands:

makedir somewhere:gg ; eg 200Mb free
lha -radex x downloads/BOOT.lha somewhere:gg/ >nil:
makedir somwhere:gg/etc
downloads:whoosh_gg_startup somewhere:gg
cd gg:
tar -v -xzf downloads:fileutils-4.0-bin.tgz
tar -v -xzf downloads:pdksh-5.2.12-bin.tgz 
rm /gg/bin/sh
cp /gg/bin/ksh /gg/bin/sh
tar -v -xzf downloads:gzip-1.2.4-bin.tgz
tar -v -xzf downloads:ixemul-48.0-bin.tgz
tar -v -xzf downloads:fifolib-38.4-bin.tgz

And now everytime you boot up run the following command:

downloads:whoosh_gg_startup somewhere:gg

Now follow the instructions in the readme to install the cross compiler,
Get a GoStats hit counter