Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI usually try to lump my odd-sized structure members together so the majority of the members are aligned.
It's really hard to know what the compiler will do, though, since it may well load your packed structure member into a register once and then not access the struct again. Probably best to start out packed, turn on full optimization and then fix performance problems. Andrew