vmmap & pmap is essentially the same but vmmap is for mac
Using the Smallest C Program to Better Understand Your System (with pmap, vmmap, and strace).
#include <stdio.h>
int main()
{
printf("hello world\\n");
while (1) {}
}
_start(){while(1){}}
compiled with
cc -nostdlib test.c