On Sunday, 10 June 2018 at 13:05:33 UTC, Nicholas Wilson wrote:
On Sunday, 10 June 2018 at 12:49:31 UTC, Mike Franklin wrote:
I'm exploring the possibility of implementing some of the
basic software building blocks (memcpy, memcmp, memmove,
etc...) that D utilizes from the C library with D
implementations. There are many reasons to do this, one of
which is to leverage information available at compile-time and
in D's type system (type sizes, alignment, etc...) in order to
optimize the implementation of these functions, and allow them
to be used from @safe code.
[...]
what compiler? what flags?
dmd main.d
Arch Linux x86_64
DMD, with no flags. I'm not compiling C's memcpy, and the
significant D implementation is memcpyASM which is all inline
assembly, so I don't see how the compiler flags will make any
difference, anyway.
Mike