Posted: Wed Feb 03, 2016 4:57 am Post subject: Where does alloc() get the memory from?
1. Does it get it from the stack, heap or a page from the operating system?
2. What is the minimum memory it allocates? ex. if I ask for 1 byte does it allocate 32?
Joined: 09 May 2003 Posts: 25297 Location: The netherlands
Posted: Wed Feb 03, 2016 5:05 am Post subject:
1: page
2: 4096.
doing multiple allocs in one script will group it into the same page, so do watch your alloc size. (an alloc of 1 byte will cause the next alloc to be 1 byte after it. so alignment is something you may want to keep in mind as well) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum