Porting to Xbox

Scott Graham <[email protected]> Fri, 5 Aug 2005 22:05:36 -0700
Newsgroups gmane.comp.lang.goo.general
Message-ID <[email protected]>
Hi

I just got goo .155 up and running on the Xbox.

Similar to Chris Double's experience on DS, I haven't gotten the Boehm
GC running, so it's just revectored to use malloc and leak terribly.

The changes were pretty straightforward:
- _MSC_VER !=3D WIN32: a few places, nothing major (Xbox uses the MSC compi=
ler)
- getenv is not supported on Xbox
- bignum nuked
- I did very simple hacking of io/%port.c as stdio isn't well supported.
- also, for whatever random reason, nmake doesn't seem to be able to
handle %system.c as a file name, so I had to change that to system2.c.
Perhaps you could use __ (or something) instead of % for those files?
(yeah, that sucks)
- there'll probably be some more changes for path/files as the Xbox
stuff is a bit unusual.

I got as far as the banner, and "goo/user 0<=3D", but I haven't actually
written any code to receive input from a host PC to pass it to goo. I
suppose it's already run some init code by that point, so it's
probably more or less working?

So, I guess my new #1 request for future goo development would be a
precise, speedy garbage collector that's as portable as the rest of
goo. :-)

It's awfully nice weather here right now so I think tomorrow will have
to be a beach day, but once I get a chance and do some better
input-communication code, I'll tidy up the changes and send along a
patch if anyone is interested.

scott

_______________________________________________
Googoogaga mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/googoogaga