[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 20 of 20 | ANN.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, |
|
|
- 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.
|