
11 Jul
2015
11 Jul
'15
3:02 a.m.
On Fri, Jul 10, 2015 at 10:17 AM, Jonas Scholl
It could also be the case that libgmp itself has to be loaded at this point. Using strace it looks like it is mmapped into the memory, maybe linux is lazy and only reads the file on the disk at the moment it is accessed the first time (i.e. at the first call)? At least linux uses a similar approach for requested memory by a program.
I can confirm Linux is lazy in loading program's code. It maps it in memory space, but doesn't load yet. That's also true for mmap.