Help - Search - Members - Calendar
Full Version: Cross Gcc?
Jagware > Consoles > Development
ray
hello guys,

check this out: http://vincent.riviere.free.fr/soft/m68k-atari-mint/
marvellous work.. the guy describes how to build a Cross GCC for windows (even supporting C++ features and 68k inline assembly) which outputs TOS executeable m68k code using cygwin.
as far as i'm concerned i think this might be an option for developping jaguar executeable code, too. one would need to build a standard library (and maybe a mathlib would be helpful) though and if i'm right it currently only outputs GCC like objects/old DRI formatted ones, so no BSD objects like processed by ALN - which would also prevent one from using external GPU/DSP objects build using MADMAC - but maybe swapD0's JAS could be a solution there (hey there mate) in case he'd rework his object output-format *hint* *hint* wink.gif.

regards,
ray
SebRmv
QUOTE (ray @ 14 Jul 2007, 20:58) *
hello guys,

check this out: http://vincent.riviere.free.fr/soft/m68k-atari-mint/
marvellous work.. the guy describes how to build a Cross GCC for windows (even supporting C++ features and 68k inline assembly) which outputs TOS executeable m68k code using cygwin.
as far as i'm concerned i think this might be an option for developping jaguar executeable code, too. one would need to build a standard library (and maybe a mathlib would be helpful) though and if i'm right it currently only outputs GCC like objects/old DRI formatted ones, so no BSD objects like processed by ALN - which would also prevent one from using external GPU/DSP objects build using MADMAC - but maybe swapD0's JAS could be a solution there (hey there mate) in case he'd rework his object output-format *hint* *hint* wink.gif.

regards,
ray


Hi Ray,

probably you missed my announcement about my libraries and the way I develop for the Jaguar. This resembles to what you suggest here.
I use a cross gcc (old version 3.3.6) to compile 68k code and I interface this with assembly code that I assemble with MadMAC
Then I link all together with ALN

Please check this:
http://removers.free.fr/spip/article.php?id_article=92 (in French)
and the tools/libs/sources there:
http://removers.free.fr/softs/download.php

Cheers
ray
hi there seb,

in fact i missed your "announcement", but this is truly cool news, i'm gonna try it out.
did you happen to talk about this with with swapd0? i mean he could "easily" incorporate support for gnu like objects into JAS and we would finally have a modern SDK.

regards,
ray
ray
QUOTE (SebRmv @ 15 Jul 2007, 01:21) *
Hi Ray,

probably you missed my announcement about my libraries and the way I develop for the Jaguar. This resembles to what you suggest here.
I use a cross gcc (old version 3.3.6) to compile 68k code and I interface this with assembly code that I assemble with MadMAC
Then I link all together with ALN

Please check this:
http://removers.free.fr/spip/article.php?id_article=92 (in French)
and the tools/libs/sources there:
http://removers.free.fr/softs/download.php

Cheers


okay mate this is *excellent* work yes.gif . an english translation of the attached article would be highly appreciated though. maybe i will finally sit down an implement a hopefully decent math-library using DSP/GPU calculus once i got it installed properly (as i said and english translation of that article would be great).

best regards,
ray
Patrice Mandin
If I'm right, madmac is the gpu assembler, and aln is the atari linker, so what would be needed:
- gpu/dsp assembly language support in gas (GNU assembler) to replace madmac
- gpu/dsp object file support in ld (GNU linker) to replace aln

The problem is that I don't know if ld could link objects of different cpu together (like a m68k object file with a gpu object file). Also to be more complete, we would have to define a target for gnu binutils for jaguar gpu stuff (gpu-atari-jaguar or something like that). Seb already used m68k-aout (generic) for its gcc kit.

Also, a bigger long term goal would be compilation of C code into gpu/dsp assembly. With the jagcf dsp coming soon, the ability to directly compile C code would come handy.

How many times did I use 'would' ? whistling.gif
swapd0
QUOTE (ray @ 15 Jul 2007, 12:48) *
hi there seb,

in fact i missed your "announcement", but this is truly cool news, i'm gonna try it out.
did you happen to talk about this with with swapd0? i mean he could "easily" incorporate support for gnu like objects into JAS and we would finally have a modern SDK.

regards,
ray

I wanna rewrite the linker part to make it more general and C++ way, then it would be easy to include other objects file formats...
Zerosquare
[offtopic]
Hi swapd0, nice to see you back ! wink.gif
[/offtopic]
ray
QUOTE (Patrice Mandin @ 18 Jul 2007, 21:42) *
If I'm right, madmac is the gpu assembler, and aln is the atari linker, so what would be needed:
- gpu/dsp assembly language support in gas (GNU assembler) to replace madmac
- gpu/dsp object file support in ld (GNU linker) to replace aln

The problem is that I don't know if ld could link objects of different cpu together (like a m68k object file with a gpu object file). Also to be more complete, we would have to define a target for gnu binutils for jaguar gpu stuff (gpu-atari-jaguar or something like that). Seb already used m68k-aout (generic) for its gcc kit.

Also, a bigger long term goal would be compilation of C code into gpu/dsp assembly. With the jagcf dsp coming soon, the ability to directly compile C code would come handy.

How many times did I use 'would' ? whistling.gif


hey there patrice,

first of all, you are right about the need of up-to-date assembler + linker tools. secondly, don't get me wrong, no offense taken here (especially since i plainly missed the existance of SebRmv's work on building the m68k-aout gcc + a more or less decent jaguar libc) you should maybe check the following links on swapd0's excellent 68k/gpu/dsp assembler called jas here:


http://www.freewebs.com/swapd0/tools.html#Jas
http://www.jagware.org/index.php?showtopic=365
http://www.atariage.com/forums/index.php?s...;p=1112868&

and maybe my dropped work on atari's GASM sources here:

http://www.jagware.org/index.php?showtopic=291


kind regards,
ray
TXG/MNX
Hi,

How active is this topic, I would love to see a cross gcc to compile for the jag...

TXG/MNX
Zerosquare
QUOTE (TXG/MNX @ 21 Aug 2007, 21:15) *
Hi,

How active is this topic, I would love to see a cross gcc to compile for the jag...

TXG/MNX


Is this not what you're looking for ? :
QUOTE (SebRmv @ 15 Jul 2007, 01:21) *
I use a cross gcc (old version 3.3.6) to compile 68k code and I interface this with assembly code that I assemble with MadMAC
Then I link all together with ALN

Please check this:
http://removers.free.fr/spip/article.php?id_article=92 (in French)
and the tools/libs/sources there:
http://removers.free.fr/softs/download.php

Cheers

Or do you have something different in mind ?
TXG/MNX
QUOTE (Zerosquare @ 22 Aug 2007, 17:25) *
Is this not what you're looking for ? :
Or do you have something different in mind ?


maybe but it's french sad.gif I rather have a good english version....
Zerosquare
QUOTE (TXG/MNX @ 22 Aug 2007, 21:30) *
maybe but it's french sad.gif I rather have a good english version....
If you ask SebRmv nicely, I think he'll explain all of this to you in English wink.gif
TXG/MNX
QUOTE (Zerosquare @ 22 Aug 2007, 22:45) *
If you ask SebRmv nicely, I think he'll explain all of this to you in English wink.gif


Hi,

I did translate it but can't get it to work unsure.gif I am also a windows user so that's hard aswell.
Could someone make diskimage pre-configurered to use with vmware player (=freeware) with linux and this xgcc configurered they right way ? This would be ULTRA COOL to start developing.

Or can someone tell me how to get the DOS compiler to work 3.3.6 ? These can be downloaded at djgpp compilers for DOS but I don't know if these are the same as seb uses.

I don't care if I need to use linux but with a pre-configurered working diskimage I could play around and it's easy to take with me on my laptop or other pc's

What do you think ?
SebRmv
QUOTE (TXG/MNX @ 23 Aug 2007, 09:34) *
Hi,

I did translate it but can't get it to work unsure.gif I am also a windows user so that's hard aswell.
Could someone make diskimage pre-configurered to use with vmware player (=freeware) with linux and this xgcc configurered they right way ? This would be ULTRA COOL to start developing.

Or can someone tell me how to get the DOS compiler to work 3.3.6 ? These can be downloaded at djgpp compilers for DOS but I don't know if these are the same as seb uses.

I don't care if I need to use linux but with a pre-configurered working diskimage I could play around and it's easy to take with me on my laptop or other pc's

What do you think ?


Hi!

I agree, a vmware image would be nice... unfortunately, I have not vmware so I can't make it. Maybe a "live" linux distrib could do it also.
For the moment, I believe you can copy the binary distrib of gcc (the one on my website) on windows XP, it should work (at least, I have tested it once).

Cheers
TXG/MNX
Hi,

I did find this link cross compiler gcc 4.x for atari st ?

Is this something usefull aswell ?
Patrice Mandin
QUOTE (TXG/MNX @ 27 Aug 2007, 14:38) *
I did find this link cross compiler gcc 4.x for atari st ?

Is this something usefull aswell ?
This is a cross-compiler to build Atari ST programs from a different machine (windows, mac or linux based). The difference with sebrmv' one is only the target system (simple m68k-coff output to be put in jaguar for seb, and .prg/.tos m68k program for Atari ST in vincent's case or on my site). And you can build gcc to build for different targets.
SebRmv
Hi,

just thought it was a good idea to advertise a bit the shell script I wrote several months ago
that automates the building of a gcc cross compiler for m68k-aout. I just tested it yesterday
while upgrading my linux distro and it worked very well smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.