Difference between debug, release builds

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

Difference between debug, release builds

跳至解决方案
234 次查看
YaronAlexandrovich
Contributor IV

There are four scenarios:

Run a debug session using the 'PE Debug' build

Run a board that has been flashed with a 'PE Debug' build, not in debugger

Run a debug session using the 'PE Release' build  

Run a board that has been flashed with a 'PE Release' build, not in debugger

 

I know RTFM is the right answer here, but I would appreciate a brief explanation of what is occurring in each of these 4 scenarios, as each leads to different behaviors.  
Also, to prove code correctness, I assume the code should work properly under a 'PE Release' non-debug session.  As of now only a 'PE Debug' debug session works correctly.  

0 项奖励
回复
1 解答
210 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @YaronAlexandrovich 

Do you mean MCUXpresso IDE? If yes, please see <MCUXpresso_IDE_User_Guide.pdf>

MCUXpresso IDE creates projects with two build configurations, Debug and Release (but you can also add more if required). These differ in the default level of compiler optimization.
Debug projects default to None (-O0), and Release projects default to (-Os). For more information
on switching between build configurations, see How do I switch between Debug and Release
builds? 

BR

Alice

在原帖中查看解决方案

0 项奖励
回复
1 回复
211 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @YaronAlexandrovich 

Do you mean MCUXpresso IDE? If yes, please see <MCUXpresso_IDE_User_Guide.pdf>

MCUXpresso IDE creates projects with two build configurations, Debug and Release (but you can also add more if required). These differ in the default level of compiler optimization.
Debug projects default to None (-O0), and Release projects default to (-Os). For more information
on switching between build configurations, see How do I switch between Debug and Release
builds? 

BR

Alice

0 项奖励
回复