Hi,
I came across optimized ARM version of memcpy while going through disassembly and I was wondering if there is one for memcmp, didn't find one in disassembly. Please let me know if there is one. I am using Cortex-R7.
Thanks.
It does not need to be, as Arm processors can handle unaligned accesses (on normal memory). If you declare structures as __unaligned, you will likely get slower performance.
Thank you! Should the memory address be aligned for memcmp as well?
Hello, as far as a I know there is only a single standard implementation of memcmp (per core) in the standard library.If you link with microlib (--library_type=microlib) there is a smaller (but likely slower) implementation.
View all questions in Arm Development Studio forum