Re: GCC on Dreamcast and PS2

"J. Grant" <[email protected]> Sat, 09 Nov 2002 12:04:56 +0000
Newsgroups gmane.games.devel.consoles
Message-ID <[email protected]>
Hi,

brian hook wrote:
> Okay, a little bit of an odd one here, but does anyone know what 
> predefined symbols GCC sets when targeting DreamCast or a PS2?
> 
> For a Dreamcast I know it sets the processor target to _SH4 (and the 
> various permuations), but I don't know if it sets a target for the 
> operating system (presumably Linux these days?).  I haven't hunted down 
> a cross-compiler just yet.

Becareful with all PS2 issues, as this toolchain is not the main release 
from GNU, it was modified by cygnus for sony with the R5900 stuff and is 
rarther old now.

> For the PS2, the GCC for EE targets the MIPS R5900(?) in, I believe, 
> little-endian mode, but I can't figure out if it actually has an OS 
> target -- I don't think it does.  

./configure --prefix=$EE --target=mips64r5900-sf-elf

So I'm not sure how to build a header
> file that targets MIPSLE but that can also identify whether it will be 
> on a PS2 vs. some other (?) MIPS little-endia device like the 5900.  
> I'm looking at the stuff on ps2dev.sourceforge.net (ee-gcc) and I've 
> tried sorting through the huge amount of crap in ee-gcc -dumpspecs.

Not sure if I follow what you are trying to achive. There is no OS 
beyond the most basic stuff in the PS2 kernel.

JG



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Gamedevlists-consoles mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-consoles
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=553