sbrk on Windows

Started by
2 comments, last by mattd 14 years, 5 months ago
I'm toying with my own implementations of malloc and free. What is the equivalent of sbrk on Windows, i.e. how do I get more memory from the operating system during runtime?
Advertisement
Heap functions.

See also related links.
You'll want to check out the heap functions and virtual memory functions.

Edit: too slow!
The closest equivalent interface on that level would be the VirtualAlloc and VirtualFree functions - see how cygwin or this example map the semantics of sbrk to VirtualAlloc/Free.

The next level up from VirtualAlloc/Free is HeapAlloc/Free. I think you'd be better using this interface for your implementation instead.

This topic is closed to new replies.

Advertisement