#111225 - 11/03/17 12:37 AM
Re: Compile stats
[Re: Golden Child]
|
Joined: Feb 2014
Posts: 139
Golden Child
Senior Member
|
Senior Member
Joined: Feb 2014
Posts: 139
|
For fun, I dug out my old Toshiba Laptop with a 32 bit processor to see how mame would do a full compile with Ubuntu 16.04 LTS. Genuine Intel® CPU U2500 @ 1.20GHz × 2 32 bit 2.0 GiB Ubuntu 16.04 LTS compiling mame191 I fell asleep waiting and the computer went to sleep due to inactivity, but it said about 5 hours of elapsed time. I would guess somewhere around 3 hours since 21997 cpu seconds/ 2 cores/ 3600 seconds per hour = 3.05 hours. /usr/bin/time make -j3
GCC 5.4.0 detected
...
Compiling src/mame/mame.cpp...
Compiling generated/version.cpp...
Building driver list...
34653 driver(s) found
Compiling generated/mame/mame/drivlist.cpp...
Linking mame...
21997.50user 1333.74system 5:04:54elapsed 127%CPU (0avgtext+0avgdata 1276864maxresident)k
3508360inputs+4227088outputs (8822major+151301401minor)pagefaults 0swaps
My cool discovery of the day is the -verbose option where it will tell you all about the compiler settings used to build mame.
./mame pacman -rompath ../../mameroms/ -video opengl -verbose
Available videodrivers: x11 mir wayland dummy
Current Videodriver: x11
Display #0
Renderdrivers:
opengl (0x0)
opengles2 (0x0)
software (0x0)
Available audio drivers:
pulseaudio
alsa
sndio
dsp
disk
dummy
Build version: 0.191 (unknown)
Build architecure:
Build defines 1: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1
Build defines 1: LSB_FIRST=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2004 USE_OPENGL=1
Compiler defines A: __GNUC__=5 __GNUC_MINOR__=4 __GNUC_PATCHLEVEL__=0 __VERSION__="5.4.0 20160609"
Compiler defines B: __unix__=1 __i386__=1
Compiler defines C: __USE_FORTIFY_LEVEL=0
Enter init_monitors
Adding monitor screen0 (1280 x 800)
Leave init_monitors
Enter sdlwindow_init
Using SDL multi-window OpenGL driver (SDL 2.0+)
... <snip>
GL texture: copy 1, shader 0, dynamic 1, 288x224 288x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 384,288/2048], bytes/pix 4
GL texture: copy 1, shader 0, dynamic 1, 288x224 288x224 [PALETTE16, Equal: 0, Palette: 1,
scale 1x1, border 0, pitch 384,288/2048], bytes/pix 4
Average speed: 100.00% (7 seconds)
sdl_kill: closing audio
Enter sdlwindow_exit
Leave sdlwindow_exit
|
|
|
#111344 - 11/23/17 05:18 PM
Re: Compile stats
[Re: Vas Crabb]
|
Joined: Feb 2014
Posts: 139
Golden Child
Senior Member
|
Senior Member
Joined: Feb 2014
Posts: 139
|
luaengine.cpp is the killer - why not profile that?  Ok, if I make any change to luaengine.cpp (even just typing a space character) or enabling SOL_CHECK_ARGUMENTS for example:
#define SOL_CHECK_ARGUMENTS
#include "sol2/sol.hpp"
Let's see how long it takes to re-compile and link, time make -j5
GCC 7 detected
Compiling src/frontend/mame/luaengine.cpp...
Compiling src/frontend/mame/clifront.cpp...
Compiling src/frontend/mame/mame.cpp...
Compiling src/frontend/mame/ui/datmenu.cpp...
Compiling src/frontend/mame/ui/mainmenu.cpp...
Compiling src/frontend/mame/ui/pluginopt.cpp...
Compiling src/frontend/mame/ui/selgame.cpp...
Compiling src/frontend/mame/ui/selmenu.cpp...
Compiling src/frontend/mame/ui/selsoft.cpp...
Compiling src/frontend/mame/ui/ui.cpp...
Archiving libfrontend.a...
Linking mame64...
real 2m2.940s
user 2m21.165s
sys 0m6.695s
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
stepping : 9
microcode : 0x1c
cpu MHz : 3292.334
|
|
|
#112233 - 01/19/18 01:46 PM
Re: Compile stats
[Re: Golden Child]
|
Joined: Mar 2001
Posts: 15,906
R. Belmont
|
Very Senior Member
Joined: Mar 2001
Posts: 15,906
USA
|
Golden Child: I thought you'd find this interesting: https://www.ebay.com/itm/VDP-1000-board-for-CP-M-Turbo-7-Run-SG-1000-Some-Colecovision-games-on-APPLE-II/282518811724?_trkparms=aid%3D222007%26algo%3DSIM.MBE%26ao%3D2%26asc%3D47300%26meid%3Db377bd165ced41c2b2404240b204bb3b%26pid%3D100623%26rk%3D3%26rkt%3D6%26sd%3D282645562451&_trksid=p2047675.c100623.m-1 It's an daughtercard for a specific (modern) Apple II Z80 board that adds the TMS9928 VDP and SN76489A sound chip at the right Z80 I/O ports so you can run unmodified SG-1000 and some Colecovision games. Genius idea, I'll emulate it in MAME soon 
|
|
|
|
8 registered members (shattered, hap, Praxis, Dorando, Breiztiger, B2K24, krick, R. Belmont),
34
guests, and
3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics8,527
Posts111,310
Members4,792
|
Most Online225 May 26th, 2014
|
|
|