This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

#pragma push , is not supported by ARM Compiler 6, what should I do ?

void function1(void){
... // Optimized at O1 (from armcc -O1)
}
#pragma push
#pragma O3
void function2(void){
... // Optimized at O3
}
#pragma pop
void function3(void){
... // Optimized at O1 (from armcc -O1)
}

How do we find an alternative way?

Parents
  • The single C source file can be broken up into multiple C files, so that the Onum option can be applied at a file level.

    I found some error on O1 in Complier 6.16  for a whole C source

    If your program displays different logical behaviour when compiling with different optimization options, then the program is likely to have a bug.

Reply
  • The single C source file can be broken up into multiple C files, so that the Onum option can be applied at a file level.

    I found some error on O1 in Complier 6.16  for a whole C source

    If your program displays different logical behaviour when compiling with different optimization options, then the program is likely to have a bug.

Children
No data