Jump to content
Jagware
Sign in to follow this  
ray

Cross Gcc?

Recommended Posts

ray    0

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* ;).

 

regards,

ray

Share this post


Link to post
Share on other sites
SebRmv    2
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* ;).

 

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

Share this post


Link to post
Share on other sites
ray    0

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

Share this post


Link to post
Share on other sites
ray    0
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: . 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

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites
swapd0    0
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...

Share this post


Link to post
Share on other sites
ray    0
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:

 

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

Share this post


Link to post
Share on other sites
Zerosquare    10
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 ? :

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 ?

Share this post


Link to post
Share on other sites
TXG/MNX    0
If you ask SebRmv nicely, I think he'll explain all of this to you in English ;)

 

Hi,

 

I did translate it but can't get it to work :unsure: 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 ?

Share this post


Link to post
Share on other sites
SebRmv    2
Hi,

 

I did translate it but can't get it to work :unsure: 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
SebRmv    2

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 :)

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×