Problem when working with Time Stamp Counter (TSC)
#1493
Labels
A-core-arch
Area: Necessary for full core::arch support
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Description
I am testing quanta, a high-speed timing library. Also tried another similar project minstant. They both utilize
Time Stamp Counter (TSC)
.Following code can pass compile, but will fail to run.
error message:
trap at Instance { def: Item(DefId(2:14264 ~ core[0e1d]::core_arch::x86::rdtsc::_rdtsc)), args: [] } (_ZN4core9core_arch3x865rdtsc6_rdtsc17h93aafcf1ca958dbeE): llvm.x86.rdtsc
.If I compile it without
cranelift
enabled, then everything is OK.More information
readelf -p .comment target/debug/main
Operating System:
Fedora 39
containerHost Kernel: 6.1.91
The text was updated successfully, but these errors were encountered: