Difference between revisions of "Getting Started"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* Optional: Set target architecture | * Optional: Set target architecture | ||
** <code>export TARGET_ARCH=ia32 # default: intel64 (or update Makefile.config)</code> | ** <code>export TARGET_ARCH=ia32 # default: intel64 (or update Makefile.config)</code> | ||
− | ** <code>sudo apt-get install libc6-dev-i386 # install 32-bit libraries if running 64-bit OS (Ubuntu in this case)</code> | + | ** <code>sudo apt-get install libc6-dev-i386 g++-4.4-multilib lib32z1-dev # install 32-bit libraries if running 64-bit OS (Ubuntu in this case) and the g++ multilib version depends on the g++ version that you are using</code> |
* Compile Sniper. Some extra dependencies (a pre-compiled copy of the Python interpreter environment) will be downloaded automatically, so make sure you have a working internet connection when you make Sniper for the first time | * Compile Sniper. Some extra dependencies (a pre-compiled copy of the Python interpreter environment) will be downloaded automatically, so make sure you have a working internet connection when you make Sniper for the first time |
Revision as of 19:46, 11 August 2012
- Get the Sniper source code from our Download page
- Download the latest Pin kit from the Pin downloads page
- Extract Pin into sniper/pin_kit
- Or set PIN_HOME to the location of Pin if you use a different directory or shared Pin location
- Optional: Set target architecture
export TARGET_ARCH=ia32 # default: intel64 (or update Makefile.config)
sudo apt-get install libc6-dev-i386 g++-4.4-multilib lib32z1-dev # install 32-bit libraries if running 64-bit OS (Ubuntu in this case) and the g++ multilib version depends on the g++ version that you are using
- Compile Sniper. Some extra dependencies (a pre-compiled copy of the Python interpreter environment) will be downloaded automatically, so make sure you have a working internet connection when you make Sniper for the first time
make
- Running an application
cd test/fft; make run
Next steps
Prerequisites
- GCC 4.3 or higher
- A recent Pin version (for example, 2.11-49306 or newer)
- Boost 1.38+
- Linux 2.6.22+