I hav developed an application which needs to be further optimized ..Memory and execution time is the constraint...Can anybody suggest some of the g++ options that can be used to optimize the execution time of the application..
I hav developed an application which needs to be further optimized ..Memory and execution time is the constraint...Can anybody suggest some of the g++ options that can be used to optimize the execution time of the application..
g++ has a few level of optimizations.
Try and compile with -O3.
Also there is a flag for fast math( -ffast-math ), but I don't know if there is an accuracy trade off.
Make sure you use set the -march option to a model that is closer to what you got.
Regards
Is it possible to use march option for an application which need to executed on a device.Any ideas
Take a look at this, since you did not specified the architecture.
http://gcc.gnu.org/onlinedocs/gcc/Su...bmodel-Options
Regards
The march option optimizes for a specific architecture. If you want the application to run quickly on any architecture, don't specify that option.
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
Excuse me, could you teach me how to compile with -O3? Where can i set it?
Bookmarks