nfg.forums

NFG Forums => SIG X68000 => Topic started by: neko68k on January 22, 2012, 07:15:46 AM

Title: GCC
Post by: neko68k on January 22, 2012, 07:15:46 AM
I got the gcc build system working. Guide to come(after I do KOWIN :-)
(http://i.imgur.com/daIAps.png) (http://imgur.com/daIAp)
Title: Re: GCC
Post by: eidis on January 23, 2012, 09:14:35 AM
Did I understood correctly that there will be a port of Linux distributive for the X68000 ?  :o

Eidis
Title: Re: GCC
Post by: neko68k on January 23, 2012, 09:57:06 AM
Nah :D We can build lots of stuff from source now though, so translations are possible for some stuff without hacking. FWIW though theres lots of Linux console programs ported.
Title: Re: GCC
Post by: lydux on January 23, 2012, 11:22:27 PM
Hot thread for me here ! :)

I just want to point out that I do not use this thing anymore. It's a very, very, very old port of gcc that miss some important features of newer C implementations, interesting gcc switchs (like optimizations) and a correct calling convention. It also rely on Hudson assembler (HAS) and linker (HLK) for building objects file, the assembler use some non-standardized m68k instructions and produce object compatible only with the toolset.
Because of all of this, porting newer programs can really be a pain ! Trust me ! :)

But I strongly encourage you to build-up this tutorial if it could show interest in x68k development in the community !
This is what I'm looking for, so thank you neko68k ! :)
Title: Re: GCC
Post by: neko68k on January 24, 2012, 12:01:44 AM
Well I have both available versions working, the 1.4 base and the 2.6.x base. 2.6.x is a bit more like what we expect to see in a modern gcc. I'm using has060 and I dont remember which version of hlk. Sorting out the correct versions was the hard part :D
Title: Re: GCC
Post by: lydux on January 24, 2012, 05:54:01 AM
Humm... I think I should show you something I'm working on  ;)

(http://i.imgur.com/t98E1.gif) (http://imgur.com/t98E1)

(http://i.imgur.com/WdoEO.gif) (http://imgur.com/WdoEO)

(http://i.imgur.com/2mnb5.png) (http://imgur.com/2mnb5)

I've modified the latest binutils and gcc to add XFile support for producing human68k binary (executables, drivers or sram target objects) using a linux or windows box.
It needs some work (it can only generate XFile right now, not read them) and I also miss a libc. But it works well.
I've also a working library for syscalling IPL or DOS functions (iocscall and doscall).

I'll release all this later, when considering it's stable enough. But you can PM if you're interested.  :)
Title: Re: GCC
Post by: neko68k on January 24, 2012, 09:31:30 AM
Very nice sir! I'll get back to you ;)