MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


MAME compiling, more info?
#315244 - 10/01/13 10:01 PM


Hi. I've seen several guis for MAME compiling which have features such as optimizations for 64 bits, dual core, quad core, etc. I don't know if these optimizations are for accelerating the compiling process with these cpus or for improving MAME's perfomance with these cpus.

Honestly, I prefer to compile manually, as I have been doing up to now. However, I haven't been able to find information about options when compiling. The official MAME webpage tells you how to compile and that's all. Same with Mr's Do site, where the only suggestion is to use -j3, -j5 or -j7 to speed up the compiling process.

Is there any source of information about optimizations as regards the resulting build, or doesn't such a thing exist and the only thing I can do is run "make"?

The information about compiling, in general, is a bit imprecise. There are two different mingws: mingw64-w32 and mingw64-w64. The only thing I know is that the first one is for compiling with 32-bit oss and the second one for compiling with 64-bit oss. But does this mean that compiling with the first one will create a 32 bit MAME and with the second one a 64 bit mame?

Thanx.






grog
Reged: 09/06/11
Posts: 419
Send PM


Re: MAME compiling, more info? new [Re: Elaphe]
#315245 - 10/01/13 10:44 PM


i heard (hopefully someone will correct me if im wrong) that these days it is not worth compiling builds which are optimised for certain cpus, as the benefits are small

when compiling, you use eg. -j3, -j5, to speed up the compiling process itself, it doesnt affect the final .exe
if u have a dual core processor use j3. if a quad core, use j5

if you want to end up with a 32bit build .exe of mame, use mingw64-w32 (eg. if u want it to run on windows xp 32bit os)

if you want to end up with a 64bit build .exe of mame, use mingw64-w64 (eg. if u want it to run on windows 7 64bit os)

ps. i hear the benefit of running 64bit mame is at least 10% increase in performance

pps. before you begin your first compile i was told you need to run the batch file in the mingw folder called 'setup-Python.bat' (you only need to run it once. not every compile)



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: MAME compiling, more info? new [Re: grog]
#315248 - 10/01/13 11:11 PM


Oh, I thought I could, for instance, compile a 64-bit MAME in a computer using a 32 bit OS, planning on using the resulting binary in a different computer (with a 64-bit OS).

There are other 2 .bat files there:

setenv.bat
setup-Qt.bat

Should I run them too? What are they supposed to do?






grog
Reged: 09/06/11
Posts: 419
Send PM


Re: MAME compiling, more info? new [Re: Elaphe]
#315249 - 10/02/13 12:34 AM


> Oh, I thought I could, for instance, compile a 64-bit MAME in a computer using a 32
> bit OS, planning on using the resulting binary in a different computer (with a 64-bit
> OS).


i havnt tried that myself, but perhaps just give it a try. using your 32bit OS just begin the compiling from the mingw64-w64 folder, see if it works out .. EDIT: actually it seems that is currently not possible.

> There are other 2 .bat files there:
>
> setenv.bat
> setup-Qt.bat
>
> Should I run them too? What are they supposed to do?


i am afraid i dont know what they do or their importance. if you dont get any errors from compiling though, i wouldnt worry about them



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: MAME compiling, more info? new [Re: Elaphe]
#315251 - 10/02/13 03:29 AM


> Oh, I thought I could, for instance, compile a 64-bit MAME in a computer using a 32
> bit OS, planning on using the resulting binary in a different computer (with a 64-bit
> OS).

I was told a while back by R. Belmont that cross-compiling doesn't work. I don't know if that has changed, but at the time, if you wanted to compile 64-bit MAME, you needed to do it on a 64-bit OS.



GroovyMAME support forum on BYOAC



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3204
Loc: A long way from you
Send PM


Re: MAME compiling, more info? new [Re: krick]
#315253 - 10/02/13 07:00 AM


> > Oh, I thought I could, for instance, compile a 64-bit MAME in a computer using a 32
> > bit OS, planning on using the resulting binary in a different computer (with a
> 64-bit
> > OS).
>
> I was told a while back by R. Belmont that cross-compiling doesn't work. I don't know
> if that has changed, but at the time, if you wanted to compile 64-bit MAME, you
> needed to do it on a 64-bit OS.

You can compile a 32-bit build on a 64-bit computer. But, you can't compile a 64-bit build on a 32-bit computer.



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: MAME compiling, more info? new [Re: grog]
#315256 - 10/02/13 07:18 AM


Negative. Here I'm with XP 32 and it refuses to work. It says that make is not a valid application. So, it's clear this version is only for 64-bit oss.

I think this should be mentioned, at least in the MAME webpage, because even the name (mingw64) can confuse the users:

- mingw64-w32 works with a 64-bit OS (Windows XP 64, Vista, Windows 7...) and compiles mame.exe (64 bit version). (or is the result mame64.exe?)

- mingw32-w32 works with a 32-bit OS (Windows XP 32...) and compiles mame.exe (32 bit version).

- With both of them use make.exe with the argument -j3 or -j5 to speed up the compiling process if you have a dual core or quad core cpu respectively.






B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: MAME compiling, more info? new [Re: Elaphe]
#315259 - 10/02/13 08:25 AM


You don't have your compiling tools or command line flags set correctly.



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Give you example how I run make. :) new [Re: Elaphe]
#315262 - 10/02/13 12:21 PM


K:\UME <- This is where my mame64.exe and mess64.exe be made at.

K:\UME\mingw\mingw64-w64 <- building tools.

K:\UME <- The src and files inside in this folder.

K:\UME\Make.bat <- My bat file command.

set path=mingw\mingw64-w64\bin
del "mame64.exe"
make -j5
pause
rd /s/q "obj\"
pause
del "mess64.exe"
make TARGET=mess -j5
pause
rd /s/q "obj\"
pause

You will get a hang of it on your end.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Elaphe
MAME
Reged: 07/06/05
Posts: 127
Send PM


Re: MAME compiling, more info? new [Re: B2K24]
#315264 - 10/02/13 02:00 PM


What do you mean? I'm compiling here with the 32 bit version of mingw without any problem.





Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 467 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2159