Skip to content

1-Harshit/cs422-computer-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS422 Computer Architecture

Homework 1 submission of the semester 2023-24-I of CS422 at IIT Kanpur.

Tools used:

  • Intel pin-3.28-98749

Codebase

  • HW1.cpp : The main pin tool code for the assignment.
  • Makefile : The makefile from pin examples to build the tool.
  • HW1.txt : Problem statement of the assignment.
  • report.pdf : The report for the assignment.
  • runs/ : Contains the output of the tool for the given SPEC2006 benchmarks.

Author

Usage

# Build the tool
make TARGET=ia32 obj-ia32/HW1.so

# Run the tool on a benchmark
cd /path/to/spec_2006/400.perlbench/
pin -t /path/to/obj-ia32/HW1.so -f 207 -o perlbench.diffmail.out -- ./perlbench_base.i386 -I./lib diffmail.pl 4 800 10 17 19 300 > perlbench.ref.diffmail.out 2> perlbench.ref.diffmail.err
  • -f flag is used to specify the fast-forward instruction count in billions.
  • -o flag is used to specify the output file.
  • -t flag is used to specify the pin tool to be used.
  • -- is used to separate the pin tool arguments from the application arguments.

About

Instruction level analysis on riscv systems using PIN tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published