Is there a way to determine current packing option is 8 or 16? I mean some code like:
u = offsetof( CHK, large );
or some predefined macro like __LINE__?
It appears that icc doesn't have such a macro. If gcc has one, we can submit a feature request to icc team.
I don't know about gcc features, I'm msvc/icl user. Thanks!
Btw, what is the purpose of 16-pack, if the maximum POD size is 8?
For more complete information about compiler optimizations, see our Optimization Notice.