...place a byte array at a word-aligned address?
I have a byte array and I need it placed at a word-aligned address. How can I do this?
You can use the aligned variable attribute to do this. For example:
unsigned char aligned_array[8] __attribute__ ((aligned (4)));
Please sign in to leave a comment.
Comments
0 comments