I created a function, and didn't call it in my project, the compiler treated it as unused dead code and removed it by the linker. I hope the optimization doesn't work only for this function, how can I do? The CodeWarrior I used is ver5.9, and the MCU is MC9S12G128.
Any help would be much appreciate!
Hi Jason.
add the function name to ENTRIES block in prm file can avoid unused function being optimized. can you please try it? can it work for you?
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi, Jennie
I works well. Thanks a lot.
you are welcome!
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------