Page 1 of 1

correct way to allocate memory below the entry point?

Posted: Sun Feb 10, 2008 8:49 am
by [nuke]
What would be the correct way to allocate memory below the entry point? say if i'm using application that needs a high entry point for a loader, but need to allocate memory?

I have been using a fixed low memory address, but it would be nice to be able to know how to do this so can correctly allocate and free memory nicely :)

Re: correct way to allocate memory below the entry point?

Posted: Mon Feb 11, 2008 5:26 pm
by WinterMute
Is there any reason why you want to worry about allocating the memory "nicely"? libogc apps manage their own memory pool so really it doesn't matter how you allocate things in a launcher.

Personally I'd tend to just load the new app being launched straight to where it's supposed to go & pass control to it. Not really sure a launcher needs to be more complex than that.