The cpuid package

[Tags: gpl]

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]

Properties

Versions0.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
Change logNone available
Dependenciesbase (==4.*) [details]
LicenseGPL
AuthorMartin Grabmueller <martin@grabmueller.de>
Maintainermartin@grabmueller.de, cpuid@henning-thielemann.de
StabilityExperimental
CategoryForeign binding
Home pagehttp://code.haskell.org/cpuid
Executablescpuid-test
UploadedSun Jan 2 11:04:08 UTC 2011 by HenningThielemann
DistributionsNixOS:0.2.3
Downloads1269 total (37 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefault
buildexamplesBuild example executablesDisabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for cpuid-0.2.1.3

                                                              -*-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