3 ms·
I've written a demonstration of this sort of thing in Ruby, where I scribble a cdecl function to memory and execute it, with the end goal being: invoke the cpui
by cstrahan 9y ago
I've written a demonstration of this sort of thing in Ruby, where I scribble a cdecl function to memory and execute it, with the end goal being: invoke the cpuid instruction to get info about the processor.
http://www.cstrahan.com/posts/2013-07-15-pure-ruby-cpuid-via-ffi.html http://www.cstrahan.com/posts/2013-07-15-pure-ruby-cpuid-via...