On Wednesday, 31 August 2016 at 08:23:57 UTC, Basile B. wrote:
By the way maybe someone could post an ER in bugzilla to get
RDTSCP available in iasm w/o using the byte code trick.
Someone beat me to it, but see here:
https://issues.dlang.org/show_bug.cgi?id=16449
On Wednesday, 31 August 2016 at 07:34:14 UTC, kookman wrote:
On Tuesday, 30 August 2016 at 09:04:41 UTC, Basile B. wrote:
Indeed, I want to use rdtscp to get access to the core ID it
makes available (to at least know when tsc is from different
cores/packages). I guess in the meantime I can use
On 31/08/2016 7:49 PM, kookman wrote:
On Wednesday, 31 August 2016 at 07:36:16 UTC, rikki cattermole wrote:
http://dlang.org/spec/abi.html#register_conventions
That link talks about for functions defined extern(C) and extern(D), and
gives specific info for win32.
I'm using linux x86_64, does
On Wednesday, 31 August 2016 at 07:36:16 UTC, rikki cattermole
wrote:
http://dlang.org/spec/abi.html#register_conventions
That link talks about for functions defined extern(C) and
extern(D), and gives specific info for win32.
I'm using linux x86_64, does that mean I can assume standard
x8
On 31/08/2016 7:34 PM, kookman wrote:
On Tuesday, 30 August 2016 at 09:04:41 UTC, Basile B. wrote:
ALternatively to Rikki K's solution, you can do this to mimic the
rdtscp behavior:
asm
{
cpuid;
rdtsc;
// store time in locals
}
// bench
{
rdtsc;
// store time in locals
}
// compute de
On Tuesday, 30 August 2016 at 09:04:41 UTC, Basile B. wrote:
ALternatively to Rikki K's solution, you can do this to mimic
the rdtscp behavior:
asm
{
cpuid;
rdtsc;
// store time in locals
}
// bench
{
rdtsc;
// store time in locals
}
// compute delta
explanations here:
-
http://www
On Tuesday, 30 August 2016 at 02:04:55 UTC, kookman wrote:
I need to access the x86_64 RDTSCP assembly instruction from D.
I found this for C++:
http://stackoverflow.com/questions/14783782/which-inline-assembly-code-is-correct-for-rdtscp
Does anyone here know how (if?) I can do this from D?
A
On 30/08/2016 2:04 PM, kookman wrote:
I need to access the x86_64 RDTSCP assembly instruction from D.
I found this for C++:
http://stackoverflow.com/questions/14783782/which-inline-assembly-code-is-correct-for-rdtscp
Does anyone here know how (if?) I can do this from D?
It appears dmd's inli
I need to access the x86_64 RDTSCP assembly instruction from D.
I found this for C++:
http://stackoverflow.com/questions/14783782/which-inline-assembly-code-is-correct-for-rdtscp
Does anyone here know how (if?) I can do this from D?