debug with large code size

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

debug with large code size

801 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jcottier on Mon Nov 21 09:19:21 MST 2011
Hi, the LPC cortex series have a 50% smaller code when changing from debug to release mode. So the question is, how can you debug code that is larger than 50% of the flash size available? Are there any debug settings strategy or pragma's that will allow this?
0 项奖励
回复
3 回复数

794 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Nov 22 06:48:42 MST 2011
Actually it does. Follow the link "Project vs per-file properties" at the end of Debugging of optimized code.
0 项奖励
回复

794 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jcottier on Tue Nov 22 03:36:26 MST 2011
Thanks for that information. Can you explain how a single file can be optimized differently to the rest of the project, the documentation referenced does not explain this.
0 项奖励
回复

794 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Nov 21 09:57:04 MST 2011
See the FAQ
http://support.code-red-tech.com/CodeRedWiki/CompilerOptimization

You build some source files for Release, and others for Debug. You could build everything for release, but this will make it much harder to debug...
0 项奖励
回复