GP32 C Library Functions


pea

developer
Joined
Oct 3, 2004
Messages
1,089
Age
46
Location
New Zealand
Website
www.projectitis.com
Hi all,

This will be simple to all the long-time c coders out there:

Where is gcc linking in the functions that I don't specifically include the headre files for, and are NOT in the Mr.Mirko SDK? For example sprintf etc? How can I find out all the functions I have access to, as some (e.g. min, max) are not available.
 
I'm not sure about under Mirkos, but the GPSDK gets them from $DEVKIT$/gp_libs/lib/*.a

To find out what is in, I'm sure there's a GNU tool, but a hex viewer shows the exportable names near the beginning of the file.


HTH ;)
 
Hi Rich,

Thanks again :) - always helpful.
I decided that the functions not included must not be included for a reason (e.g. portability) so decided to source external ones. i.e. Fixed point math instead of floating.

BTW - in my simple game so far (just my player, and enemy and about 50 bullets at once on screen) I converted from float to fixed point math and the speed increase is phenomenal. And its only addition and subtraction, and a few multiplications so far (no trig yet).... its so quick, its almost playable on geepee32 at actual speed.
 
Back
Top