c++ - How do I mmap a _particular_ region in memory? -
i have program. want able mmap particular region of memory on different runs.
- i have source code of program. c/c++
 - i control how program compiled. gcc
 - i control how program linked. gcc
 - i control how program run (linux).
 
i want have particular region of memory, 0xabcdabcd 0xdeadbeef mmap particular file. there anyway guarantee this? (i have somehow make sure other things aren't loaded particular region).
edit:
how make sure nothing else takes particular region in memory?
you cannot make sure nothing else takes area of memory - first come, first served. however, need particular part of memory, i'm guessing have pretty specialized environment, need make sure first (using start scripts)
Comments
Post a Comment