gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > GNU C library vs uclibc

#784 - Vortex - Fri Jan 10, 2003 5:34 pm

Is the GNU (GCC) c library the best solution for GBA development ? Since the GBA is an embedded device isn't it better to use a standard C library which is optimized for embedded systems (http://www.uclibc.org/ comes to mind).

Two more related questions:

1. Is DevKitAdv's gclib optimized for GBA in some way
2. Is it a full version of the GNU gclib or it is a stripped down (i.e. a subset)

Your input will be greatly appreciated. Thanks in advance

#789 - Touchstone - Fri Jan 10, 2003 6:08 pm

My personal opinion is that for an embedded system it's always better to strip away everything and write the functions you need for yourself. The reason why I'm voting against using standard libraries, atleast for the gba, is because of the memory restrictions aswell as often you don't need to use standard library functions. For printing your score on screen for instance, instead of doing your sprintf(buff, "You got %s points", score) you'd probably want your artist to draw a nice "You got ___ points" logo and put in the rest with moving sprites. I think the philosofy of using standard library doesn't go hand in hand with my philosophy of doing gba games.

That's just my opinion and I'm sure plenty of people would, and will, argue against me.
_________________
You can't beat our meat