Cool Tools - Binary Improvement Tool - BITThe Sun Binary Improvement Tool (BIT),
is a tool for measuring performance or test suite coverage of SPARC®
binaries. It can also optimize binaries to improve runtime
performance, particularly with respect to instruction cache usage.
BIT works on binaries which have been compiled with the
SunTM
Studio
or
GCC for SPARC® Systems
compilers, using the ‑xbinopt=prepare option.
Download and Install
If you are using the
Sun Studio 12 Compilers and Tools,
please follow the steps on
CMT Developer Tools for Sun Studio 12 to download and install.
If you are using the
Sun Studio 11 Compilers and Tools,
please follow the steps on
Add-on Cool Tools for Sun Studio 11 to download and install.
If you are using GCC for SPARC Systems,
BIT is already installed as
part of the distribution.
It is invoked as <gcc-install-dir>/gcc/bin/bit.
The man page is <gcc-install-dir>/gcc/man/man1/bit.1.
There are some differences in features among these versions
of bit. See the Release Notes below for
descriptions and compatibility information.
Using BIT
Once you have downloaded and installed BIT, usage is simple.
Please refer to the Documentation section for
more details on the User's Guide and man pages avaialble for different
versions of BIT.
Here is a brief introduction to BIT usage.
First, make sure the binary you are working on has been compiled with
‑xbinopt=prepare. (If you're using Sun Studio, you must
also compile with optimization using ‑O or ‑xO1 or above.)
Then, instrument the binary with the command:
bit instrument target
By default, bit will save the instrumented binary as target.instr.
Run the instrumented binary with a typical workload:
target.instr < typical_input
Then analyze or optimize the binary. To analyze the run, producing
a report, for example, of the frequencies of instructions in the run,
type:
bit analyze ‑a ifreq target
Many other analysis reports are available.
To optimize the binary, use a command such as:
bit optimize ‑O target
For more information on optimization, see the
Binary Optimization Guide.
Dependencies
BIT 1.2 for Sun Studio 12 requires that
Patch 124861‑01 for Sun Studio be
installed.
Known Issues
Because of the way libraries are instrumented at run time when using
bit -M, it is possible for code to be undercounted, and in rare
instances program execution may be incorrect. See
this page for more information
and details on workarounds.
This issue has been fixed in BIT 1.3. However, in order for the fix
to be effective, the instrumented binary must be run on a machine
with one of the following operating systems:
- Solaris 10 Update 5
- Solaris 10 with
Patch 127111-07 installed
- Solaris 11 build 70 or above
Documentation
Release Notes
Support
BIT is provided without support. However,
CoolTools Forum
are available where questions and discussions about
installing, using, or improving BIT can be posted. Posting in the
forums does not guarantee a response.
Please send your feedback to:
.
|