Vivek, you could probably reuse parts of the boot loader's heap implementation for that; it's very simplistic. If you need something more advanced, I guess one of the debug heaps could be helpful, too. Could you point me to some documentation?