automatically insert code after every read and write inside a loop in a c program
Hi
I want to automate the lrpd test which essentially involves
inserting a few lines of code after every read and write inside
a loop in a c program.
Whats the easiest way to do it.
if in a loop a shared array is being used the then to find out if
their are no cross iteration dependencies lrpd test is used
It involves marking arrays Ar[i] and Aw[i] after a read and write to the ith element of shared array A .
I have to somehow do something related to this and show it to my proffesor.Please help