Forum Discussion
Altera_Forum
Honored Contributor
13 years agognu profiler for Nios application, which compiler optimization level to choose
I'm trying to use the gprof as described in the AN391, and I'm not sure how to handle the compiler optimization flag -O, should I set it both in BSP and in Nios application ? in the AN391 it's r...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- but I get more reasonable results when I set only BSP to -O3 and switch optimization off for the application, the application is a simple AES encode & decode --- Quote End --- That sounds like a bug in your software that maybe you should look into. However, if you want to defer looking into it, what you can do is just change the compiler settings for the source files which have your core AES algorithm in them. If you continue to get incorrect results, you'll have to look into that.