correct way to allocate memory below the entry point?

Post Reply
[nuke]
Posts: 2
Joined: Sun Feb 10, 2008 7:09 am

correct way to allocate memory below the entry point?

Post by [nuke] » Sun Feb 10, 2008 8:49 am

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 :)

WinterMute
Site Admin
Posts: 1862
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Mon Feb 11, 2008 5:26 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests