clang. Currently tested only
under Linux, but porting to other systems shouldn't be difficult.
For sysadmins, to install in
./configure && make -j8 install
For developers with an unprivileged account (typically with
export LD_LIBRARY_PATH="$HOME/lib" export LIBRARY_PATH="$HOME/lib" export CPATH="$HOME/include" export PATH="$HOME/bin:$PATH"
$HOME/.profile), to install in
./configure --prefix=$HOME && make -j8 install
For distributors creating a package: Run
./configure --prefix=/usr && make -j8
and then follow your usual packaging procedures for the
build/0/package/man/man3/cpucycles.3 build/0/package/include/cpucycles.h build/0/package/lib/libcpucycles* build/0/package/bin/cpucycles-info
There are some old systems where libcpucycles requires
libcpucycles.so doesn't link to
so it's up to the caller to link to
More options: You can run
./configure's guess of the architecture that it should
compile for. The architecture controls which cycle counters to try
amd64 tries compiling
0 is symlinked to
make clean removes
./configure automatically starts with
./configure --host=arm64 will create
0 -> arm64, without touching an existing
However, cross-compilers aren't yet selected automatically.
Compilers tried are listed in
compilers/default. Each compiler
-fPIC to create a shared library,
hide non-public symbols in the library, and
-fwrapv to switch to a
slightly less dangerous version of C. The first compiler that seems to
work is used to compile everything.
Version: This is version 2023.01.05 of the "Install" web page.