You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from my experience with newlibnano in NintendoDS, you need to add SOFT VP support somehow. (I didn't care to recompile newlib nano through make config package, I recompiled everything, so it would fit my toolchain, ToolchainGenericDS)
Variadic functions is one thing (multiple arguments), to test if it works correctly, try something pretty simple as: printf("test:%x - %x",0x1234,0x5678), if you see "test:0x1234 - 0x5678" then variadic functions are working.
Then after you tested that, you need to add support for: VFP IEEE-754 compliant 64bit double / float :
I just tailored newlib nano for ToolchainGenericDS, so it may not be what you want, but gives an insight as of why that happens.
Also, when linking libmath, make sure the library supports your processor. I failed to run any variadic-like function from ARM7, using newlibnano (printf, sprintf failed) and that was due to that. So I had to recompile libmath, newlib nano for each processor (ARM7 and ARM9)
When I use:
uint64_t nr = 123;
printf("%llu", nr);
without the newlib-nano, it shows correctly
123
but when I enable newlib-nano, it shows
lu
Am I missing a linker/compiler option or is this not supported in newlib-nano?
The text was updated successfully, but these errors were encountered: