Hello I want to optimize specific function to 0 optimiation. Please let me know the syntax for it. I tried
#pragma GCC push_options
#pragma optimization_level 0
void fun()
{
----
-----
}
#pragma GCC pop_options
Not sure whether it is correct syntax or not. Please help me. Thanks
Solved! Go to Solution.
Hello Santosh:
Sorry for the time with no responses.
Please try with the next syntax:
#pragma optimization_level 0
void fun()
{
//.....
}
#pragma optimization_level reset
This should work.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Santosh:
Sorry for the time with no responses.
Please try with the next syntax:
#pragma optimization_level 0
void fun()
{
//.....
}
#pragma optimization_level reset
This should work.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Jorge,
Thanks for the reply, issue solved, but recently i tried to update codwarrior to version10.6 and MQX to 4.0.2 when I create a new sample project of existing example project I am getting lot of compiler errors. Do I need any extra patch or any software to get the program executed. I have also attached the snapshot of the example project for your reference. Please guide me. Thanks