On 05/28/2014 06:09 PM, Henry Vermaak wrote:
an ifdef to call QueryPerformanceCounter/()clock_gettime() based on OS.
Things like this is why I'd rather use dVSO.
Calling the vDSO will certainly make things faster.
For me, the point is, that with vDSO, the Linux infrastructure will handle the dirty stuff that is involved with such low level greatly arch depending things. It is supposed to work "out of the box", even if for certain archs no support from the hardware is available and provide the best possible support by the Kernel software.

For C programmers, this is automatically in place, as libC and the Kernel are done appropriately. fpc (supposedly for good reasons) is determined to reduce libC dependance as much as possible. Hence the rtl needs to provide arch dependent low level stuff internally.

As it is provided directly by the Linux Kernel, vDSO is a way to take advantage of Kernel provided arch-independence without using libC.

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

Reply via email to