Hi ,
Here we using LPC55s16 for the project. After completion of 80% memory, tried to optimize the project with optimize most (-O3) and by optimize for size (-Os). After the optimization of the project, while executing the code half of the project get collapsed and not works well as like before.
We observed that some global variables, which are works well without optimization and after optimization those variable not get updated in case using in multiple files. But if we use the variable with the declaration of volatile its words well.
Mainly while optimization, project size get reduced by the 20-25%. So we have reduce the size. What actually happens, while optimization of the project. Kindly resolve this issue.