heap allocation

Hi,

can i allocate heap myself ?
i want to allocate it as shared memory.

Thanks!
vasilii