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

[ foreign-binding, gpl ] [ 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]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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, 0.2.3.1
Dependencies base [details]
License LicenseRef-GPL
Author Martin Grabmueller <magr@cs.tu-berlin.de>
Maintainer magr@cs.tu-berlin.de
Category Foreign binding
Home page http://uebb.cs.tu-berlin.de/~magr/projects/cpuid/doc/
Uploaded by MartinGrabmueller at 2008-04-18T13:32:30Z
Distributions NixOS:0.2.3.1
Reverse Dependencies 3 direct, 6 indirect [details]
Downloads 6568 total (28 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for cpuid-0.2

[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.  There is also a C version for this test
program, to test the overheads of Haskell's FFI.

Happy Haskell hacking,
  Martin