Brian,
You probably know this already, but the PS2 Linux Kit
(http://playstation2-linux.com) has all the build tools and doc and you
could get what you want from there I think. Meanwhile, in case it
helps, CodeWarrior defines all of these in the prefix file presumably
indicating you need to set these in the configuration file.
/* MIPSEL */
#define MIPSEL
#define _MIPSEL
#define __MIPSEL__
/* R5900 */
#define R5900
#define _R5900
#define __R5900__
/* ee */
#define __ee__
Cheers,
Brett
> -----Original Message-----
> From: gam...@li...
> [mailto:gam...@li...] On
> Behalf Of brian hook
> Sent: Saturday, November 09, 2002 11:17 AM
> To: gam...@li...
> Subject: [GD-Consoles] GCC on Dreamcast and PS2
>
>
> 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.
>
> 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. 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.
>
> Thanks,
>
> Hook
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Gamedevlists-consoles mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-consoles
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=553
>
|