Open Quuxplusone opened 4 years ago
Attached strncpy.c
(315 bytes, text/x-csrc): string copy source code
If you're targeting some environment where unaligned access doesn't work for whatever reason (e.g. the cache is disabled), you can pass -mno-unaligned-access to clang.
Otherwise, I'm not sure why you think the transform is wrong; unaligned accesses are generally pretty fast on a cortex-a72.
@Eli ,thank you for the suggestions ,what about code size ?
strncpy.c
(315 bytes, text/x-csrc)