Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

fred92

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:November 10, 2023, 01:07:28 pm
Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
« 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.
« Last Edit: March 26, 2021, 05:50:31 am by fred92 »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 818
  • Last login:Today at 02:32:23 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: Why my compiled groovymame 0.229 is bigger than original ?
« Reply #1 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

fred92

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:November 10, 2023, 01:07:28 pm
Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
« Reply #2 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 ?
« Last Edit: March 26, 2021, 06:02:13 am by fred92 »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
« Reply #3 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.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

fred92

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:November 10, 2023, 01:07:28 pm
Re: Why my compiled groovymame 0.229 is 522MB instead of 207MB ?
« Reply #4 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.
« Last Edit: March 26, 2021, 01:42:13 pm by fred92 »