...
char -1 byte aligned
short -2 byte aligned
int -4 byte aligned
float - 4 byte aligned
double - 8 byte on windows, 4 byte on linux
Compliant code
...
suggestions
Code Block | ||
---|---|---|
| ||
-make specific functions (avoid use of void*) -always use strictest alignment type for arbitary pointers |