Build quicknes with gcc 4.9. Use SSE2, LTO, PGO. All told, about 5% speedup? Maybe less?

This commit is contained in:
nattthebear 2016-02-15 18:22:16 -05:00
parent c450aae00e
commit 2b56dd491d
3 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -31,7 +31,7 @@ void operator delete(void *p)
std::free(p);
}
#define EXPORT extern "C" __declspec(dllexport)
#define EXPORT extern "C" __declspec(dllexport) __attribute__((force_align_arg_pointer))
EXPORT void qn_setup_mappers()
{

View File

@ -1,7 +1,10 @@
CXX = g++
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer
CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -march=pentium4 -mtune=core2 -flto
# TODO: include these as options in the Makefile
# -fprofile-generate
# -fprofile-use
TARGET = libquicknes.dll
LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS)
LDFLAGS = -shared -static -static-libgcc -static-libstdc++ $(CXXFLAGS)
RM = rm
CP = cp