optimization - Optimal C Structure definition -
I was thinking about ideas thinking when packing objects (int, float, union, etc.) in C structure (C structure definition) that will allow the compiler to customize it.
I would like to know if there are guidelines that should be followed by adding items to the structure in a sequence which allow alignment for the boundaries of words. e.t.c. ?
The details will be appreciated
Regards, -J
The question also enters optimization strategies for compiling such a structure.
If you can compile your code under GCC, then you are able to find those structures Those who can be improved, can do it again and again.
Comments
Post a Comment