Page 1 of 1

what compiler?

Posted: Mon Aug 28, 2006 8:54 pm
by speewave
I Want to make a program (Game) for WinCE\Win32\Mac\ect... should i go with SDL for FB or SDL for Mingw(DevCpp) or any one else have a C compiler for at least WinCE?

Re:what compiler?

Posted: Tue Aug 29, 2006 2:16 am
by Pype.Clicker
i'd be surprised if there weren't ports of GCC for winCE (probably whyme_t could tell you, iirc). Maybe "mingw" would be too specialized at windows code, but mingw, like cygwin, are just flavours of the GCC compiler and it's clique.

Now the question of "SDL for FB" or "SDL for Mingw" isn't really related to the compiler right ? it will depend on what interface your system supports. If it can offers you bare framebuffer you should rather use "SDL for FB", while "SDL for mingw" might be using parts of the Win32 API (and clearly, that won't be nice on MacOS :P)

Re:what compiler?

Posted: Tue Aug 29, 2006 5:57 pm
by speewave
is there any other compiler for my SDL App? can I use something MacOS Compatable and windows compatable or should i make my SDL App in Windows and have some dude port it to macos?

Re:what compiler?

Posted: Wed Aug 30, 2006 4:31 am
by Pype.Clicker
first you need to be more precise on what "MacOS" you target. If that's MacOS X, it has GCC, so you could use that as well -- at least, you could use gcc-for-MacOSX to compile your sources on a MacOSX-with-GCC, or you could build a cross-compiler to build your-app-for-MacOSX from your windows PC.

If it's MacOS9 or something earlier, you might be stuck ... or not.

Anyway, you need to make sure there's a port of SDL library for MacOSX first. I cannot guarantee that, though i have good hope it exists.

Finally, you need to know that Macs and PCs are different beast to the bones: one is big-endian, the other is little-endian (well, they're starting to ship Intel-equipped Macs ... traitors!) ... Especially when it'll come to reading files, that will make a _strong_ difference. There are ways to work around that (ntoh* macros, for instance), but you _must_ be aware there's something to care about.