[GSoC 2019] Interested in Baremetal D Runtime and project ideas
Mike Franklin
slavo5150 at yahoo.com
Tue Apr 9 00:14:09 UTC 2019
On Monday, 8 April 2019 at 10:47:17 UTC, Mike Franklin wrote:
> It's actually quite alarming how many calls there are to memcpy
> for such small amounts of data.
>
> Phobos:
> count fn size_in_bytes
> 48420 memcpy 8
> 26298 memcpy 2
> 26298 memcpy 1
I actually neglected to consider something here. I think the
compiler actually recognizes calls to memcpy and replaces them so
it may not actually be making function calls for each of these.
Nevertheless, if this were implemented as a template in the
runtime, there would be no need any compiler magic, which would
make the compiler just that much simpler to implement and
maintain.
Mike
More information about the Digitalmars-d
mailing list