Re: [CIL users] counter.ml in PowerTOSSIM

2012-05-19 Thread Gabriel Kerneis
Hi, On Fri, May 18, 2012 at 09:18:57PM -0400, Lipeng Wan wrote: > int bb_count[1][0] ; > > In my opinion, the second dimension of this array should be the number of > blocks rather than be 0. Indeed, and this is obviously what the author intended too. > Is there anyone who is familiar with

[CIL users] counter.ml in PowerTOSSIM

2012-05-18 Thread Lipeng Wan
Hi guys, I am trying to use the PowerTOSSIM and I have added the counter.ml into CIL features and use it to add the execution counters into each basic block. However, there is still a problem left. In the instrumented source code, the global variable which is used to record the execution times is