Hello all,
regarding TMS320F2833x it is possible to write such things:
// Declaration with global scope
int i[10];
struct s
{
long l;
};
// somewhere in a function:
struct s * p;
p = &i[0];
long A = p->l;
p = &i[1];
long B = p->l;
Because of the alignment A and B have the same values.
Is there a possibility to raise an error regarding this topic:
Like "because of alignment p may have corrupt data"...
Thanks for your help!
JD