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

armclang and memcpy: Weird behavior

Just for info:

armclang optimizes memcpy() in a weird way (seen for ARMv7e-M), not respecting the order of access.

So a memcpy(RBAR, mputable,...) failes :(

Parents
  • Roman, the problem is not the MPU programming. But the strange order of memory accesses of the memcpy. Any device which wants a linear order of accesses would fail. I am using memcpy on a lot of different platforms with a multitude of compilers, and never saw a behavior like this. But maybe the C standard allows it, I do not know.

Reply
  • Roman, the problem is not the MPU programming. But the strange order of memory accesses of the memcpy. Any device which wants a linear order of accesses would fail. I am using memcpy on a lot of different platforms with a multitude of compilers, and never saw a behavior like this. But maybe the C standard allows it, I do not know.

Children
No data