CFLAGS and optimisations

Get help with programming issues.

Moderator: PPS-Leaders

Post Reply
nicolasc
Baron Vladimir Harkonnen
Posts: 258
Joined: Wed Nov 01, 2006 7:58 pm
Location: your mind
Contact:

CFLAGS and optimisations

Post by nicolasc » Mon May 07, 2007 6:55 pm

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
BOFH Excuse #212: Of course is doesn't work. We've performed a software upgrade.

chrigi
Human Space Navy Major
Posts: 40
Joined: Tue Oct 24, 2006 5:52 pm
Contact:

Post by chrigi » Tue May 08, 2007 7:06 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest