Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
edflsafoiewq
· 8y ago · 0 comments
I was wondering recently whether I could depend on bitfields being packed in the "obvious" way. Few people would pass a judgement on it, but the desktop targets I tried all did it the same way. Any common setups that pack them differently?
Comments
[–]
aetherspawn
8y ago
It depends on ABI but for x86, x64 and ARM targeting Cortex, I got the same results on all using gcc-4.8.
[–]
edflsafoiewq
OP
8y ago
I also got the same result for vc++/x64.