Page 1 of 1

CFLAGS and optimisations

Posted: Mon May 07, 2007 6:55 pm
by nicolasc
I am asking out of pure curiosity...

What CFLAGS/CXXFLAGS are you using to compile Orxonox, and what are the effects. To me it seems, that this has some effect... (often to the worse)

Code: Select all

-march=pentium-m -O2 -pipe -falign-functions=64 -ggdb -g2 -fvisibility-inlines-hidden
-ggdb and -g2 are Orxonox specific, the rest I use on my gentoo systems without any incidents.

cheers
nico

Posted: Tue May 08, 2007 7:06 am
by chrigi
I use

Code: Select all

-ggdb3 -D__STDC_CONSTANT_MACROS
-ggdb3 might get me better backtraces
-D__STDC_CONSTANT_MACROS is needed to compile Orxonox with my ffmpeg headers