3 ms·
I've worked on a project that successfully uses memory mapping on all the major OSes. mmap is (allegedly) portable across Unixes: http://opengroup.org/onlinep
by holygoat 17y ago
I've worked on a project that successfully uses memory mapping on all the major OSes.
mmap is (allegedly) portable across Unixes:
http://opengroup.org/onlinepubs/007908775/xsh/mmap.html http://opengroup.org/onlinepubs/007908775/xsh/mmap.html
and you can do the same thing (with a few more hoops) on Windows.
- Locke1689 17y agoThere's no guarantee that it will be portable and act the same (even across the POSIX systems). I'm not saying you should never use it, just that it shouldn't your automatic answer to everything.
- kelnos 17y agoMany people may not care, but mmap() often doesn't exist on hardware without a MMU.