#include <stdio.h>

#include <stdlib.h>

#define RPT 10000000

int main() { 

         int i=1;   

         for( i=0;i<RPT;i++)   {  

         while(1);

         }           

}

1.gcc -g 2.c   -> a.out

2.GUI性能分析器打开

  起动命令:analyzer&

3.文件->收集实验

sunstudio 12.3 on solaris 10

 

4. ctrl +c ,终止死循环               会生成 test.4.er

5.选 打开实验 或者 在文件 -》打开实验 test.4.er

6.反汇编 与 源代码查看

 

sunstudio 12.3 on solaris 10sunstudio 12.3 on solaris 10

 

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-05-10
  • 2022-02-03
  • 2022-12-23
猜你喜欢
  • 2021-08-09
  • 2021-10-16
  • 2021-12-05
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案