Download presentation
Presentation is loading. Please wait.
1
Tutorial 0 SimpleScalar Installation CPEG-323 Intro. To Computer Engineering Tom St. John September 19, 2008
2
Outline Introduction Installation How to Use Demo Labwork
3
Introduction What is SimpleScalar tool set? –A Complete Computer Architecture Test Bed –Includes: Compiler Assembler Linker Binary Utilities Architecture Simulators –Software capable of replicating the functions and capabilities of a computer system or device –Helps predict the output of a machine with a given input
4
The Simulators sim-fastSimulator designed for optimal speed and does not check for cache memory. sim-safeSimulator similar to sim-fast, but checks for memory alignment and access. sim-profileObtains information on text symbol, memory accesses, etc. sim-cacheSimulator of multi-level cache. sim-cheetahCache simulator with multiple configurations and runs a single pass of the program. sim-bredBranch predictor simulator. sim-outorderMost complicated and detailed simulator that performs out-of-order execution of instructions.
5
Why SimpleScalar? Test programs and applications on various ISAs. –PISA, ARM, Alpha, and x86 Simulators can emulate computer devices, such as, cache and branch predictor. It’s software! –Cuts production cost and time –Don’t have to rely on one machine –Most importantly…its PORTABLE!
6
Where to get it? Web Site: –http://www.capsl.udel.edu/~jmanzano/simplescalar_pat ched.tar.gzhttp://www.capsl.udel.edu/~jmanzano/simplescalar_pat ched.tar.gz Download using either wget or a web browser
7
Outline Introduction Installation How to Use Demo Lab Work
8
Installation – Step 1 Use SSH Secure Shell Client to log in to account at “linuxlab.acad.ece.udel.edu” –You need an account to do the labs! Copy the tarball file to your home directory Untar the files –tar xzvf simplescalar_patched.tar.gz If the command fails, try this sequence –gzip –d simplescalar_patched.tar.gz –tar xvf simplescalar_patched.tar
9
Directory Checklist simplesim-3.0/: SimpleScalar simulators’ source code. binutils-2.5.2/:The GNU binary utilities code. sslittle-na-sstrix/:Root directory of little-endian SimpleScalar binary utilities and compiler tools and contains header files and a pre-compiled copy of libc. ssbig-na-sstrix/: Same as above, except it holds big-endian binary utilities. gcc-2.6.3/: The GNU C compiler code.
10
Step 2 – Build GNU Utilities cd binutil-2.5.2 –(cd $PATH_TO_FOLDER/CPEG323/binutils-2.5.2)./configure --host=i386-unknown-gnu/linux -- target=sslittle-na-sstrix --with-gnu-as --with-gnu-ld --prefix=$PATH_TO_FOLDER/CPEG323 make make install
11
Step 3 – Build Simulator cd../simplesim-3.0 –(cd $PATH_TO_FOLDER/CPEG323/simplesim-3.0) make
12
Step 4 – Build Compiler cd../gcc-2.6.3 –(cd $PATH_TO_FOLDER/CPEG323/gcc-2.6.3)./configure --host=i386-unknown-gnu/linux --target=sslittle-na-sstrix --with-gnu-as --with-gnu- ld --prefix=$PATH_TO_FOLDER/CPEG323 make LANGUAGES=c../simplesim-3.0/sim-safe./enquire -f >! float.h- cross make install
13
Outline Introduction Installation How to Use Demo Lab Work
14
How to Use Write the program. –C language or assembly Compile source code. –sslittle-na-sstrix-gcc –o xxx xxx.cC code to binary code –sslittle-na-sstrix-gcc –o xxx.s –S xxx.cC code to Assemble code –sslittle-na-sstrix-gcc –o xxx xxx.sAssemble code to binary code Use simulators to run binary code. –sim-safe fooNecessary for lab. –sim-fast fooGain optimal speed. -etc.
15
Outline Introduction Installation How to Use Demo Lab Work
16
Demo
17
Outline Introduction Installation How to Use Demo Lab Work
18
Your linuxlab accounts have limited disk quota! Don’t use tar command too frequently or you’ll use up all your disk quota If quota exceeded, then cannot install SimpleScalar –Send a help request the server’s admin. A Warning!
19
Construct a simple C program –E.g. Adding 2 integers together or a series of arithmetic operations. Compile and run code on simulator. Code is running correctly? Then move on to the lab questions Installation Complete? Test it!
20
Any Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.