26-Apr-2024 14:10 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
Comment 17whoosh22-May-2004 20:11 GMT
Comment 18whoosh22-May-2004 20:46 GMT
Comment 19whoosh23-May-2004 16:26 GMT
68k hosted gcc for x86-AROS ported : Comment 20 of 20ANN.lu
Posted by whoosh on 24-May-2004 18:55 GMT
In reply to Comment 19 (whoosh):
re gcc-morphos: good news and bad!the good news is that I can compile source files eg if add.c is:int f( int x , int y ){ return( x + y ) ; }then (with AmigaOS shell prompt %)% gg:bin/ppc-morphos-gcc -O2 -S add.c -o add.s% gg:bin/ppc-morphos-gcc -O2 -c add.c -o add.oppc-morphos-gcc: installation problem, cannot exec `as': No such file or directory% assign c: ports3:binutils291/morphos/install/ppc-morphos/bin ADD% gg:bin/ppc-morphos-gcc -O2 -c add.c -o add.owith the assign it compiles correctly,the assign statement forcing the ppc-morphos/bin/as into the search path,and the contents of add.s are: .file "add.c"gcc2_compiled.: .section ".text" .align 2 .globl f .type f,@functionf: add 3,3,4 blr.Lfe1: .size f,.Lfe1-f .ident "GCC: (GNU) 2.95.3 20010315 (release/lcs-2002-04-12)"entirely generated through rebuilt "equipment",However it looks tricky to integrate this into the 68k environment,as the reference to "as" seems to be hardwired,also without the mossdk_#? files I cannot link this into a program,The install procedure seems to start building other stuff which it cannot complete without the mossdk_#? header files, however gcc gets done without problem,One other thing, I found a source file which if you activate some stuff allows you to have m68k alignment instead of the default different ppc alignment,that way 68k AmigaOS headers could be used as-is, however it wouldnt be consistent with other Morphos things,:so anything outside of classic AmigaOS would have to be rebuilt from scratch,this approach may be more useful for porting, you would have 2 parallel Morphoses,(Morphi?) one with ppc alignment the other with m68k alignment for porting purposes,(dont know what problems you would run into in trying to set this up),gcc is a very geological thing, eg ppc appears to be a customisation of RS6000,
Jump...
TopPrevious commentbottom
Back to Top