can calloc or malloc be used to allocate ONLY physical memory in OSX?
问题 I am playing around with the c functions malloc and calloc and I have some questions. I want to see if I can use these 2 functions to allocate only physical memory, my mac has 4gb or ram and when I use malloc I can allocate way more than 4gb, which means malloc allocate both physical and virtual memory. I have a couple of questions: is there any function I can use, so that I can only allocate the physical memory (w/o allocating the virtual mem) when calling malloc and calloc and when the