egtb.cpp and size of executable

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

egtb.cpp and size of executable

Postby vergie » 06 Feb 2010, 13:17

Hello,

for testing I implemented nalimov endgame TB access. I used the egtb.cpp file from crafty.
First thing i recognized was the increase of the executable size of my engine from about 200 KB to more than 1000 KB.
I used the MS C++ Compiler on windows and icc on linux. I could not find compiler settings to reduce the size.

On Jim Ablett's side I found a windows x64 crafty version with only 246 KB.

How is it possible to create such small executables ?


Ralf
vergie
 
Posts: 4
Joined: 24 Jul 2009, 16:31

Re: egtb.cpp and size of executable

Postby Jim Ablett » 06 Feb 2010, 20:20

vergie wrote:Hello,

for testing I implemented nalimov endgame TB access. I used the egtb.cpp file from crafty.
First thing i recognized was the increase of the executable size of my engine from about 200 KB to more than 1000 KB.
I used the MS C++ Compiler on windows and icc on linux. I could not find compiler settings to reduce the size.

On Jim Ablett's side I found a windows x64 crafty version with only 246 KB.

How is it possible to create such small executables ?


Ralf



Hi Ralf,

Make sure exe is stripped > strip crafty.exe
then compress it. (these usually strip it as well)

Windows x64:
Mpress (http://www.softpedia.com/get/Programmin ... RESS.shtml)
or
Pespin (http://pespin.w.interia.pl/)

Win32 & Linux:
Upx (http://upx.sourceforge.net/)

Jim.
___________________________
http://jimablett.net63.net/
Jim Ablett
 
Posts: 721
Joined: 27 Sep 2004, 10:39
Location: Essex, England


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 5 guests