You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2012-12-21 15:56:39

kbios
Member
Registered: 2012-12-21
Posts: 10

Optimizing with gcc 4.7

Hello, I did a few experiments to find out what the best flags are when building desmume on linux with gcc 4.7 (64-bit). I post the result here in case someone finds it useful. The benchmark was done always the with same scene, the frame limiter disabled, no frameskip and nearest filtering.

-O0 -march=native: ~37 fps
-O3 -march=native: ~71 fps
-Ofast -flto -fwhole-program -march=native -fprofile-use -fprofile-correction -minline-all-stringops: ~77 fps (of course I did the first pass with "-fprofile-generate")

In the future I'd like to try individually the flags in the last line to see if some are useless.

Offline

#2 2013-10-20 23:57:44

rmartins
Member
Registered: 2013-10-20
Posts: 5

Re: Optimizing with gcc 4.7

Interesting, I always get segmentation faults when running after building with LTO. I wonder what's different on your system. Mine is debian testing. Also, could you maybe point me to a good explanation of this profile option for GCC? Thanks!


Dell System Vostro 3450 / Linux 3.10-2-amd64 Debian 3.10.7-1 x86_64
Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz (4 cores)
MemTotal: 6022396 kB

Offline

#3 2014-04-16 19:21:32

naxil
Member
Registered: 2014-04-16
Posts: 2

Re: Optimizing with gcc 4.7

people, can u help me with linux compiling? i have open a thead here, because i get lot of error with autogen.sh

Offline

Board footer

Powered by FluxBB