Hi,
As I understand c64x+ core allows non aligned access.
But when I try to load/store 4 byte data at non aligned 32 bit location, I face the problem.
Data gets written/read from aligned location which I do not want.
How can I use unaligned accesses?
I do not want to use intrinsics to load/store unaligned data.
pseudo code:
int val;
/* a[] is aligned address */
char a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
char * ptr;
ptr = a + 1;
val = *(int *)ptr;
expected result is 4321
but I am getting val as 3210?
Is there any option to be set to tell to compiler to use unaligned acess?