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.

DS development > Way/function to load function dynamically?

#176994 - renai - Fri Nov 18, 2011 12:13 pm

Guys, I need a way/functions to load function dynamically. My program has sets of functions (bigger than 4mb).

Edit:
I've found solution to my problem, this link:
http://forum.gbadev.org/viewtopic.php?t=16119&start=15&postdays=0&postorder=asc&highlight=load+function
But the links to the source code are all dead.

Please help.

#176995 - Miked0801 - Fri Nov 18, 2011 4:45 pm

What are you trying to do that you need some sort of code overlay system?

#176996 - renai - Fri Nov 18, 2011 7:07 pm

Actually I was looking for something like dll and its LoadLibrary function or whatever functions/way to load code to ram on the run. I've searched "code overlays" (thanks to you, Mike) just now and it seems that's the way to go.

Again, thank you.
;)

#177137 - hacker013 - Sat Dec 17, 2011 9:19 am

the mirror is still online: http://www.host-a.net/u/urazelda/dsli.zip
_________________
Website / Blog

Let the nds be with you.

#177138 - fincs - Sat Dec 17, 2011 11:50 am

You could take a look at the FeOS source code, an OS I'm making for the DS. It has its own relocatable executable format called FXE2, which is IMO much more reliable than PIC-based binaries. *cough* self-promotion *cough*