sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.52k stars 208 forks source link

Recommended Release Flags #123

Closed michael-manley closed 2 years ago

michael-manley commented 2 years ago

What is the build flags used on actual release builds. I would like to add that to the build system so when I'm ready for a release build all I need to do is specify as such.

sarah-walker-pcem commented 2 years ago

IIRC basic flags were as in Makefile.mingw-wx-sdl2 : -O3 -march=i686 -fomit-frame-pointer -msse2 -mstackrealign -Werror -fno-strict-aliasing

I also used profiling optimisations to eek a bit more performance from the release builds. Compile and link with "-fprofile-generate", run for a bit with a range of content, then recompile and relink with "-fprofile-use".