cpuid: Binding for the cpuid machine instruction on x86 compatible processors

[ foreign-binding ] [ Propose Tags ]

This module provides the function cpuid for accessing information about the currently running IA-32 processor. Both a function for calling the cpuid instruction directly, and some convenience functions for common uses are provided. This package is only portable to IA-32 machines.


[Skip to Readme]
Versions [RSS] [faq] 0.2, 0.2.1, 0.2.1.2, 0.2.1.3, 0.2.2, 0.2.2.1, 0.2.2.2, 0.2.3
Dependencies base (==4.*), data-accessor (>=0.2.2 && <0.3), enumset (>=0.0.3 && <0.2) [details]
License LicenseRef-GPL
Author Martin Grabmueller <martin@grabmueller.de>
Maintainer martin@grabmueller.de, cpuid@henning-thielemann.de
Revised Revision 1 made by HenningThielemann at 2021-07-26T16:43:50Z
Category Foreign binding
Home page http://code.haskell.org/cpuid/
Source repo head: darcs get http://code.haskell.org/cpuid/
Uploaded by HenningThielemann at 2012-05-22T14:23:35Z
Distributions NixOS:0.2.3
Executables cpuid-test
Downloads 5981 total (35 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Manual Flags

NameDescriptionDefault
Automatic Flags
NameDescriptionDefault
buildexamples

Build example executables

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for cpuid-0.2.3

[back to package description]
                                                              -*-outline-*-
* README file for cpuid binding

This small Cabal package provides a Haskell binding to the "cpuid"
machine instruction on modern IA-32 processors.  

** Usage

Use

  runghc Setup.hs configure
  runghc Setup.hs build
  runghc Setup.hs install

for building and installing system-wide, or

  runghc Setup.hs configure --prefix=$HOME/haskell-modules
  runghc Setup.hs build
  runghc Setup.hs install --user

for building and installing in directory $HOME/haskell-modules.

Just import module "System.Cpuid" into your Haskell file and use

  ghc --make FILENAME

to compile your program.

The "tests" directory contains a small test program for the module and
demonstrates its usage. You may compile this program by installing with

  cabal install -fbuildExamples cpuid

There is also a C version for this test program, to test the overheads
of Haskell's FFI.

Happy Haskell hacking,
  Martin