0 Members and 4 Guests are viewing this topic.
This is great! I was thinking about porting bFLT a while ago, but lacked skills and time to do it. This will definitely advance Nspire development quite a bit! Also, do you think there's a way to change that limit?Reading this, it says that the limit is "due to the way [he] encoded library addresses...can be changed but it requires quite a bit more effort".I think the ID system should be changed if possible... it would be kinda weird to start assigning IDs, or having some kind of system manage IDs and such. I think having some kind of Java-style naming system, like "com.alberthrocks.myawesomelibrary", would be better. (And then call this bFLT2, Nspire edition ) Just my 2 cents. Again, great work! This will open the platform to C++ code, and make porting ten-fold easier!
library_call() -> gcc code verneer -> unrelocated address = crash
library_call() -> library function = win
#define DIRECT_LIB_CALL(x, args...) do { \ typeof(x) * volatile tmp = x; \ tmp(#args); \ } while (0)DIRECT_LIB_CALL(library_call);
At least when it comes to nSDL, having a working and stable loader would be absolutely great. It would right away open a lot of doors and remove the burden of tedious debugging. Newlib would work, giving access to a working libc and making porting a lot easier (math library and whatnot). SDL_image and other libs would work with quasi no changes and nSDL code would be considerably cleaner. Good job tangrs, this'll be a great plus.