cost 1.0.2 review

Download
by rbytes.net on

cost project measures the cost (in clock cycles and nanoseconds) of fundamental operations in computer programs. The operations ra

License: GPL (GNU General Public License)
File size: 17K
Developer: Roland Smith
0 stars award from rbytes.net

cost project measures the cost (in clock cycles and nanoseconds) of fundamental operations in computer programs.

The operations range from simple integer mathematics to C library functions. It is relatively simple to add new tests, even for programmers new to C.

It was inspired by ยง7.6 of The Practice of Programming (ISBN 0-201-61586-X), by Kernighan & Pike.

To build it, unpack the tar-file with "tar -xzf cost-1.0.2.tar.gz". Enter the cost directory and give the "make" command. If that works, give the command "./cost" to run the program.

Requirements:
Requires a Pentium (or newer) x86 CPU for the timing functions. (An Athlon also works).

Do not add optimizations to CFLAGS in the makefile; most tests will be optimized out that way.

cost 1.0.2 search tags