This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

32Byte alignment

I'm using CARM in uVision3. I have to use the variable which is aligned to 32 byte boundary. For example,

...
int Var1, Var2;

struct{ char Index[16]; char Bucket[16][32];
}Var_3, Var_4;
...

Var1 has to be located at 0x20000020
Var2 at 0x20000040
Var3 at 0x20000060
Var3 at 0x20001060

It means that they shouldn't be located at such as 0x20000023, 0x20000030 or so on)

How to located them at 32 byte aligned memory?