Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
drivebyhooting
50 days ago
|
parent
|
context
|
favorite
| on:
Why malloc always does more than I asked for?
Why bother with dynamic padding and a back pointer? That wastes at least 8 bytes.
You might as well always align to 8 bytes and make your header a multiple of 8.
jraph
50 days ago
[–]
The back pointer could also be a 1 byte number giving the size of the padding.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You might as well always align to 8 bytes and make your header a multiple of 8.