Profiling C++ with exceptions enabled

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Profiling C++ with exceptions enabled

841 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 8473 on Wed Jun 17 03:33:59 MST 2015
Hello,

evaluating LPC-Link2 with a LPC43s37 [OM13073-board] it appears that enabling C++-Exceptions breaks the profiler.
("Enable Profile" is grayed out then).

Is this behaviour intended?


Regards,
0 项奖励
回复
3 回复数

817 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 17 10:34:23 MST 2015
Thanks - we've been able to reproduce the issue here.

It is not intended functionality. There was a bug in the code that handled the disassembly used by the profiler. The code generated when removing "-fno-exceptions" contains the TBB instruction. The TBB disassembly exposed the bug.

The next release of LPCXpresso will include a fix for this issue.



0 项奖励
回复

817 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 8473 on Wed Jun 17 04:29:42 MST 2015
Sorry - LPCXpresso 7.8 on Win7.


Edit - Steps to reproduce:

Creating a new LPCOpen-C++-Project using the wizard, building and running enables the "Enable Profile"-Button when debugger stops at main().
Stopping, removing "-fno-exceptions" from compiler-options and rebuilding/-starting: Button is grayed out when stopped at main().
0 项奖励
回复

817 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 17 04:02:52 MST 2015
Which product/version/operating system are you talking about?
0 项奖励
回复