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.

  • Ul>

    Comments

    Popular posts from this blog

    c# - ListView onScroll event -

    PHP - get image from byte array -

    Linux Terminal Problem with Non-Canonical Terminal I/O app -