68k-amigaos hosted cross compiler and binutils for x86-aros, ported by whoosh777@blueyonder.co.uk Because my website is almost full, these are .tar.bz2 archives, this reduces by several megabytes the amount of webspace required, full instructions on how to decompress .tar.bz2 archives is given in a. below, Usually you dont use binutils directly but gcc-3.3.1 calls binutils for you. the default compile is for i686, but other CPU's can be done via eg -march=i386, i486, i586, i686, pentium, pentiumpro You will need to download a further archive from the AROS website before you can use this properly, this is because there are so many different licenses involved that it is simpler this way. a. Installing binutils-2.14 b. Installing gcc-3.3.1 c. Using gcc-3.3.1 In order to decompress (and recompress) bz2 files, download my port http://www.whoosh777.pwp.blueyonder.co.uk/bzip2-1.0.2-bin.lha a. --------------- Installing binutils ---------------------------- you want to decompress 68k-arosx86-binutils214.tar.bz2 to gg: but without overwriting any existing files, say current directory is home: which contains eg 68k-arosx86-binutils214.tar.bz2 sh cd /gg tar -v -k -xIf /home/68k-arosx86-binutils214.tar.bz2 exit is how you extract .tar.bz2 archives without overwriting existing files, lha -radex x 68k-arosx86-collect.lha gg: b. --------------- Installing gcc-3.3.1 ---------------------------- You need to install binutils-2.14 first explained in a., Now decompress to gg: exactly as explained in a. above 68k-arosx86-gcc-331-cc1.tar.bz2 68k-arosx86-gcc-331.tar.bz2 skip any already existing files, note what they are, You now need to visit www.aros.org/download.php and download the archive that has a name like AROS-20040320-i386-all-sdk (probably a different date in the name) this contains the AROS includes and linker libraries, (and many other things) decompress this to get eg AROS-20040320-i386-all-sdk say in the current directory, now type: copy AROS-20040320-i386-all-sdk/i386/include gg:i686-pc-aros/sys-include all clone dates copy AROS-20040320-i386-all-sdk/i386/lib gg:i686-pc-aros/lib all clone dates c. --------------- Using gcc-3.3.1 ---------------------------- to compile xyz.c i686-pc-aros-gcc-3.3.1 -s -O2 -c xyz.c -o xyz.o to link x1.o x2.o x3.o into a program prog i686-pc-aros-gcc-3.3.1 -s -o prog x1.o x2.o x3.o If you get a requester for eg i686-pc-aros: then assign this to ram: The c++ part of the compiler is fully untested, The c compiler has been tested out on several AROS specific program examples from AROS-20040320-contrib-source/Demo from the download archive AROS-20040320-contrib-source, so to compile eg hello world say hello.c : #include int main( int argc , char **argv ) { printf("hello world!\n"); return( 0 ); } i686-pc-aros-gcc-3.3.1 -s -O2 -c hello.c -o hello.o i686-pc-aros-gcc-3.3.1 -s -o hello hello.o -O2 gives you sensible optimisation, and -s strips debug info producing much smaller binaries, for testing out code omit -O2 to speed up the compile and use -O2 just for the final version.