Platform: Mac OS X
Lang: Obj-C / C
Is it possible to somehow make "malloc" to allocate memory in the first 4 GB of the process address space?
I am emulating an i386 stack and must ensure that this address is within the valid 32 bit range.
Using mmap + MAP_FIXED requires WRITING memory before any "malloc", this is not entirely convenient. "malloc" with restrictions will be much more convenient.
source
share