debug with large code size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

debug with large code size

803 Views
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 Kudos
Reply
3 Replies

796 Views
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 Kudos
Reply

796 Views
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 Kudos
Reply

796 Views
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 Kudos
Reply