Look folks, contrary to common believe, mmap is indeed a memory allocation function similar to malloc..
the mmaped file is one use of it.. you can use it as memory allocation function passing -1 as file descriptor..
so.. the common use is to use malloc for tiny objects and mmap for large ones..
this is a good strategy..
i use alloca() to for function scope only variables..