|
|
|
|
|
by torlok
9 days ago
|
|
You mean 4 bytes? You can't even address 4 bits. Small allocations can be handled by a slab allocator. Most likely implemented via a free list. A general purpose malloc should have that feature. TBH, I would consider allocating such tiny amounts of memory as a programmer error. |
|
> You can't even address 4 bits.
This is not true, you can use a pointer plus extra offset data, etc.