Infinite recursion with memcpy and memset/memclr lowerings
Mike Franklin
slavo5150 at yahoo.com
Fri Jul 20 01:35:22 UTC 2018
On Thursday, 19 July 2018 at 22:36:37 UTC, Mike Franklin wrote:
> Correct me if I'm wrong, but it appears that forwarding to
> compiler-rt's implementation or using `ldc.intrinsics` will
> require linking in a C standard library. I'd prefer to avoid
> that.
FYI, I tried to implement my own `memcpy` and `memset`
implementations and just have `__aeabi_memcpy` and
`__aeabi_memclr` forward to those, but then the compiler
recognized the `memcpy` and `memset` calls and replaced them with
`__aeabi_memcpy` and `__aeabi_memclr`. :-/
Mike
More information about the digitalmars-d-ldc
mailing list