
 #!/bin/bash 

 pin="/home/waqarm/Work/Sim_Tools/PIN"

 pintool="/home/waqarm/Work/Sim_Tools/PIN/source/tools/MyPinTool/obj-intel64"

 infile="$1"

# pintoolfile="mecca1.so"

pintoolfile="$2"

# gcc ./${infile}.c -ggdb -O2 -save-temps -o ./${infile}.out

 gcc ./${infile}.c -save-temps -o ./${infile}.out

 ${pin}/pin -injection child -t ${pintool}/${pintoolfile} -- ./${infile}.out


