Friday, July 29, 2011

Compiling latest MAME for Intel Atom processors

This is more of a note to myself, but I'm putting out there for anybody else that might need it.

Download the following:

Change to the source directory and ensure that the proper path is set to find `make`:

> e:
> cd mame\mame0143

Apply all of the patches in the proper order:

> unzip ..\0143u1_diff.zip
> unzip ..\0143u2_diff.zip
> patch -p0 -E < 0143u1.diff
> patch -p0 -E < 0143u1.diff
> patch -p0 -E < hi_143.txt

Build it with optimizations for the atom processor.  For 64-bit builds ensure you're using the 64-bit version of the build environment, and add the parameter "PTR64=1".  The "-j6" specifies the number of threads to build with --set this to the number of cores/threads your processor(s) can support.  A simple -j should figure out what is optimal, but I had issues on my workstation.

> set PATH=e:\mame\mingw64-32w\bin
> make OSD=windows TARGETOS=win32 ARCHOPTS="-march=atom -mtune=atom" -j6

I can build the 32-bit version in less than ten minutes on my workstation... the 64-bit version is a significantly faster build at less than five minutes.

0 comments:

Post a Comment