this is my first post, i dont know if iÂ´m asking in the right place... anyway...
I got a structure in my program something like
unsigned char x;
when i use sizeof(str) i got 3, which is fine 1 for the char and 2 for the int.
but in a program for a 32 bit machine it will add padding data in order to get the rigth alignment.
I want to know if data alignment its unnecesary on 8 bits micros beacause the processor gets 1 byte at a time, or in what cases its usefull??
thanks for any help,
sorry for my english I'm from Colombia.