The gp2x shipped with NO accelerated API available to users unless they wanted to do all their graphics in software or program to the bare metal with ASM, and no realistic ability to write cross-platform code for that reason...
I smell someone who only half knows what he's talking about. Programming "to the bare metal" has absolutely nothing to do with ASM and doesn't require it. You normally do the whole thing in C by writing or reading to registers (which are at well specified addresses in physical memory which is mapped thanks to mmap()).
As for the cross-platform comment, if it's ever given to you to look at some real code, you might notice statements starting with #ifdef. For example if you have #ifdef WIN32, the code that comes after that (and until the next #endif) will only work on Windows builds, and will be completely ignored on other platforms. Thanks to those, people put all the time code that only works on one platform in their code, with an equivalent for another platform.
This way, you can turn your code that would normally work on PC builds, and make a version of it specially made for the GP2X, and make the two versions of the code co-exist in the same program.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.