Fanatic Demon
Student in Wizardry
In the compiler options of code blocks, I notised in the Compiler Flags in the Visual C++ Toolkit 2003, is has flags for optimising code.
Some of the most intresting compiler flags are:
- /O2 : maximise speed
- /Og: enable global optimalisation
- /Ox : maximum optimalisation (no need for other options)
- /Ot : favor code speed
- /G7 : optimise for Pentium 4 / Athlon
- /arch:SSE enable SSE instruction set
- /arch:SSE2 enable SSE2 instruction set
- /GA : optimise for windows applications
I tried /O2 / Ot / G7 /arch:SSE /arch:SSE2 which copiles and runs correctly. It may be my imagination but it seems faster. Does anyone have any insight in this compiler optimalistion?
Some of the most intresting compiler flags are:
- /O2 : maximise speed
- /Og: enable global optimalisation
- /Ox : maximum optimalisation (no need for other options)
- /Ot : favor code speed
- /G7 : optimise for Pentium 4 / Athlon
- /arch:SSE enable SSE instruction set
- /arch:SSE2 enable SSE2 instruction set
- /GA : optimise for windows applications
I tried /O2 / Ot / G7 /arch:SSE /arch:SSE2 which copiles and runs correctly. It may be my imagination but it seems faster. Does anyone have any insight in this compiler optimalistion?