Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

code analysis

satya_b_
初学者
1,568 次查看

Dear all,

           I want to debug code as well as analyse code through Vtune amplifier. I used following command

  ifort  -o  file.x -O3 -g  *.o . However , when I open the source code in Vtune amplifier, that particular subroutine is comming in the binary format. I have searched in  intel forums also, I could not get proper suggestions.  Could any one please suggest me, whether am I doing correct or wrong. I enclosed snapshots of my results.

Thank you.  

0 项奖励
2 回复数
TimP
名誉分销商 III
1,568 次查看

In order for -g to take effect, it has to be set when making the .o as well as for the link step.

0 项奖励
TimP
名誉分销商 III
1,568 次查看

You showed your link step, which you have set up correctly to link against debug libraries.  This does not modify the .o files, which you apparently made without -g, so they don't have the debug symbols required to refer to source code.

0 项奖励
回复