Tool/software:
How to disable optimization only for some functions not all functions
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
How to disable optimization only for some functions not all functions
Hi Rick,
For the functions you wish to not optimize, you can add this attribute:
__attribute__((optnone))
For example, if I want to avoid optimizations a function, i can use this attribute as:
__attribute__((optnone)) void function_name(void* args)
{
// function
}
Regards,
Shaunak