Tool/software:
Hello Team,
I am using MCAL_MSPM0_00.02.04.00 for my project. I was trying example (DIO) from MCAL package.
I tried to use -O2 compiler flag and in that case, I found below observation:
- This part of code got optimized,
-Because of that code directly goes into below section and it continuously keep executing there.
When I tried to use -O0 compiler flag and in that case, I found below observation:
- Code is not optimized as expected and code is executing required sequence. But may be due to incorrect settings related SYSPLL when code reaches at below line, it jumps into reset handler.
I want to understand with -O2 or above optimization, what would be impact on performance & debugging?