BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:

Off topic, but perl related because it would potentially allow for a portable module.

Does *nix have any equivalent to VirtualAlloc(). Specifically, the ability to allocate regions of virtual memory a) at specific addresses; b) outside of the CRT heap?

If so, is there a common API for this across *nixes, or different APIs on different *nixes?

(Also, I'm specifically only interested in 64-bit OSs.)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re: *nix virtual memory allocation. (mmap)
by tye (Sage) on Jul 19, 2011 at 07:19 UTC

      Perfect, thanks.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.