How to favor speed over size?
I am wondering if there is a project file command that allows to generate faster code? I am using QtCreator 2.3.1 under Windows, and compiling with MingW or MSVC2005.
Or is there a configuration file that I can edit to specify additional commands? E.g. for the MSVC2005 compiler, I could specify switches like “/O2”, “/Ob2”, “/Oi” or “/Ot”, but where could I add those switches?
( I added following line to my project file, but this doesn’t make a difference it seems: “CONFIG += fast” )
Thanks for any insight
Thanks to both of you!
I am actually turning my CPU into a radiator since it is about heavy calculations, so I am using following settings for maximum speed:
CONFIG += fast
QMAKE_CXXFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_RELEASE += -Ob2
QMAKE_CXXFLAGS_RELEASE += -Oi
QMAKE_CXXFLAGS_RELEASE += -Ot
QMAKE_CXXFLAGS_RELEASE += -GL
Not sure though if the “CONFIG += fast” is needed or has an effect whatsoever.