call @PLT Performance

SrMordred patric.dexheimer at gmail.com
Wed Jan 16 13:03:59 UTC 2019


Compiler noob here:

auto a = popcnt(bitset);
auto b = bsf(bitset);

generate this:

call    pure nothrow @nogc @safe int core.bitop.popcnt(uint)@PLT
call    pure nothrow @nogc @safe int core.bitop.bsf(uint)@PLT

Why not generate the bsf/popcnt instruction?

Aren't this call's slower?

(this question expand to all the places where calls to @PLT 
happen)


More information about the digitalmars-d-ldc mailing list