Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: fred92 on March 24, 2021, 12:17:34 pm

Title: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
Post by: fred92 on March 24, 2021, 12:17:34 pm
Hello all,

i have compiled groovymame (using msys64 and make)  with this option :
make -j5 subtarget=arcade

and the .exe size is about 522MB.
Is there a way to reduce the size like the 207MB of Calamity's ?
thanks.
Fred.


Edit :
i found UPX, with a simple drag and drop it resized to 298MB...

And you, what do you use ?
thanks.
Title: Re: Why my compiled groovymame 0.229 is bigger than original ?
Post by: Substring on March 25, 2021, 05:52:23 am
I don't remember if the mame exe is stripped, but you should try + don't activate debug symbols + -O2 or -O3 + check dist.mak, it has some interesting flags to use
Title: Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
Post by: fred92 on March 26, 2021, 05:49:57 am
thanks you Substring for your answer

i tried this :
make -j5 subtarget=arcade debug=0 strip_symbols=1 PTR64=1 OPTIMIZE=3

(i'm using latest msys64.exe, all is up to date, and GM source)

but same size : 522MB.
i don't understand...

Could someone share his compiling command ?
Title: Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
Post by: Calamity on March 26, 2021, 06:59:36 am
Hi fred92,

Here are the flags I used (before github):

OPTIMIZE=3 SYMLEVEL=1 SYMBOLS=1 STRIP_SYMBOLS=1

However you'll need to start a clean build, otherwise they won't have the result you expect.
Title: Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
Post by: fred92 on March 26, 2021, 07:50:54 am
Hi fred92,

Here are the flags I used (before github):

OPTIMIZE=3 SYMLEVEL=1 SYMBOLS=1 STRIP_SYMBOLS=1

However you'll need to start a clean build, otherwise they won't have the result you expect.

Thank you Calamity for your clear answer.

I'll edit this post after trying a fresh new compilation with this command :

make -j5 OPTIMIZE=3 SYMLEVEL=1 SYMBOLS=1 STRIP_SYMBOLS=1

(see you in 1 hour and a half... time it takes to make the job)

Good news, GM is now 287MB  it's betten than at the biggining.

Thank you very much for your answer and for Groovymame software !!
Fred.