| ▲ | alfiedotwtf an hour ago | |
Making every C call a system call is not a good idea at all - think about malloc() etc - the OS shouldn’t care about individual allocations and only worry about providing brk() etc. otherwise, performance will die if you’re doing a thousand system calls per second! | ||
| ▲ | HexDecOctBin 20 minutes ago | parent [-] | |
No modern libc uses (or should use) brk() as the heap. Allocate virtual memory using mmap, VirtualAlloc, etc., and manage your set of heaps. | ||