I have some code that uses memmove to truncate a string in place, which results in an unaligned memory access (#8000003) on 68000. I created a small test case for this:
#include <string.h>
char text[40];
int main(void)
{
memmove(text, text + 1, sizeof(text) - 1);
return 0;
}
I build it with m68k-amigaos-gcc -noixemul -O2 -Wall -o mmtest mmtest.c so memmove gets inlined.
I have some code that uses memmove to truncate a string in place, which results in an unaligned memory access (#8000003) on 68000. I created a small test case for this:
I build it with
m68k-amigaos-gcc -noixemul -O2 -Wall -o mmtest mmtest.c
so memmove gets inlined.