Virtual memory is CIA, the OS can perfectly give you a couple 2M pages for your program and stack and instead of malloc you just ask for more pages.