what compiler?

Programming, for all ages and all languages.
Post Reply
speewave

what compiler?

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:what compiler?

Post 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)
speewave

Re:what compiler?

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:what compiler?

Post 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.
Post Reply