Forum Discussion

Alexander047's avatar
Alexander047
Icon for New Contributor rankNew Contributor
4 years ago

preprocessor command #pragma optimize

Good day!
I noticed that the compiler nios-elf-gcc ignores the preprocessor command #pragma optimize.
The fact is that when optimizing some parts of the code, the behavior of the program is wrong.
Can you please tell me if it is possible to manage the optimization for NIOS for individual code sections?
If #pragma optimize command is supported in nios-elf-gcc, tell me please what is the syntax of this preprocessor command (can you give an example).
Best regards, Selentsov