Texas Instruments MSP430 Series: What is the effect of using the intrinsic function never_executed()?
MCU
MSP430 series
You can tell the compiler to ignore unnecessary Switch statements.
Assuming that the default label of a Switch statement is never executed, if you write never_executed() in the default label of the Switch statement, the Switch branch will not occur, resulting in efficient code generation.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.