Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How fast can you allocate a large block of memory in C++?.
This makes me think if the whole question is really about C++ or the OS implementation for memory allocations. This could have little to do with C++.
On a bare-metal system, malloc/sbrk (and thus new) can be something as simple as:
uint32_t retptr = heap; heap += size; return retptr;
There are no comments on this comment yet.
This makes me think if the whole question is really about C++ or the OS implementation for memory allocations. This could have little to do with C++.
On a bare-metal system, malloc/sbrk (and thus new) can be something as simple as: