Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TheZenPsycho
on Jan 2, 2014
|
parent
|
context
|
favorite
| on:
The Lost Art of C Structure Packing
The offsets of code and data blocks are already undetermined before linking. Even if the algorithm is non-deterministic, what's stopping the optimisation from not running until link time?
RogerL
on Jan 2, 2014
[–]
sizeof (foo) would not be known until link time.
static_assert(sizeof(foo)==64, "you didn't align foo correctly") would not be possible.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: