user109116
user109116

Reputation: 11

converting C code to .gba with MinGW

You know how you can compile C/C++ code into a .exe file like this:

g++ helloworld.cpp -o helloworld.exe

Is it possible to compile C/C++ code to any other file format such as .gba using mingw?

Upvotes: 0

Views: 860

Answers (1)

Philip
Philip

Reputation: 1551

Well, in general, this is called "cross compiling". You're running windows, but you want binary code for a target system other than windows, like .gba.

The answer is yes, gcc, even the mingw flavor of gcc can be set up to build towards a target platform.

If you're specifically trying to do the homebrew thing for Nintendo's Gameboy Advanced, then no not really. What you want is over here. It looks like they use something like mingw, but not quite.

Upvotes: 4

Related Questions