On 05/03/16 23:12, Bart wrote:
On 3/5/16, Jonas Maebe<jonas.ma...@elis.ugent.be>  wrote:

>FPC 3.x has system.popcnt
Thanks.
I see it's a compilerproc.
How can I see how it'simplemented?

The "compilerproc" modifier does not influence code generation other than symbol mangling. You can just look at the implementation in the system unit like for any other routine.

It's however not just a compilerproc, but also an intrinsic. This means that the compiler knows about this routine, and may substitute it with more efficient code on some platforms. To know whether it does so in your case with your particular compiler version and compiler settings, you have to look at the generated assembler code.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to