-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impossible constraint in 'asm' #80
Comments
That's some inline assembly code that only works on i386 and x86_64. You'll want to write some sort of equivalent code for other platforms, ideally using a cycle-accurate counter like the x86 TSC. Something like |
So you are saying that |
I've never encountered a user on another platform. I'm happy to accept suitable patches, but I'm not going to write them myself as obviously I can't test them :-) |
Are you sure that clock_gettime(CLOCK_MONOTONIC, &t) is dramatically less accurate? My understanding is that clock_gettime may use the TSC, where it is available, without doing a system call (when the program is dynamically linked). Also, how are you tackling the problems of TSC on a multi-core system, as described for example in https://en.wikipedia.org/wiki/Time_Stamp_Counter ? |
Fixed by 0673606. |
Hi,
criterion-1.1.0.0 fails to build on arm* and powerpc:
https://buildd.debian.org/status/fetch.php?pkg=haskell-criterion&arch=armel&ver=1.1.0.0-2&stamp=1430704376
https://buildd.debian.org/status/fetch.php?pkg=haskell-criterion&arch=armhf&ver=1.1.0.0-2&stamp=1430808023
https://buildd.debian.org/status/fetch.php?pkg=haskell-criterion&arch=powerpc&ver=1.1.0.0-2&stamp=1431220028
Do you have an idea what’s wrong and how to fix it?
The text was updated successfully, but these errors were encountered: