|
From: Raul G. <rau...@ma...> - 2015-02-16 21:30:02
|
Hello Valgrind team, Send<https://outlook.manchester.ac.uk/owa/?ae=Item&a=New&t=IPM.Note&cc=MTQuMy4xOTUuMSxlbi1VUywzLEhUTUwsMCww&pspid=_1424120900870_192651510#> I am a new user of Valgrind, and I so far I know that I can analyze the output file like in the example below: "A single call to the swap function requires 15 instructions: 3 for the prologue, 3 for assign to tmp, 4 for copy from * b to * a, 3 for assign from tmp and 2 more for the epilogue". . void swap(int *a, int *b) 3,000 { 3,000 int tmp = *a; 4,000 *a = *b; 3,000 *b = tmp; 2,000 } That information is great, but is it possible to get the exact instructions (mnemonics) that where utilized/executed per each line like in the example below? This information would be really valuable to me. . void swap(int *a, int *b) 3,000 { [insta, instb, instc] 3,000 int tmp = *a; [insta, instb, instc] 4,000 *a = *b; [instd, instd, insta, instc] 3,000 *b = tmp; [instc, insta, instb] 2,000 } [instc, insta] Best Regards, Raul. |