Compile request for Stockfish

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Compile request for Stockfish

Post by hgm »

Can someone make a reasonably sized 32-bit Windows executable for Stockfish variant ( https://github.com/ddugovic/Stockfish )? The official binary releases are all 64-bit versions. The 32-bit compile someone made for me of an older version measures 2.34MB, while the 64-bit .exe is only 1MB. I don't see why a 32-bit version should be any larger than a 32-bit version.

None of my compilers seems to be able to compile Stockfish.
mar
Posts: 2559
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Compile request for Stockfish

Post by mar »

You can try this one www.crabaware.com/sjaak/varf32.zip
It's vanilla 32-bit msc2015 version, ~650kb. Untested though.
mar
Posts: 2559
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Compile request for Stockfish

Post by mar »

Oops, forgot to define variant macros. now 750k, link is the same as above.
All variants compiled in except for relay variant which wouldn't compile.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Compile request for Stockfish

Post by hgm »

Great! Thank you so much!
D Sceviour
Posts: 570
Joined: Mon Jul 20, 2015 5:06 pm

Re: Compile request for Stockfish

Post by D Sceviour »

hgm wrote:The 32-bit compile someone made for me of an older version measures 2.34MB, while the 64-bit .exe is only 1MB.
GCC-32 compile leaves multiple block lines in the final executable among some other script, for example:

Code: Select all

"GCC: (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 4.9.3"
I tried "strip.exe" but it will not clean. I have no idea why it would say "MinGW-W64" for a 32-bit compile, as I think the information might have nothing to do with compilation.
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Compile request for Stockfish

Post by Sven »

D Sceviour wrote:
hgm wrote:The 32-bit compile someone made for me of an older version measures 2.34MB, while the 64-bit .exe is only 1MB.
GCC-32 compile leaves multiple block lines in the final executable among some other script, for example:

Code: Select all

"GCC: (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 4.9.3"
I tried "strip.exe" but it will not clean. I have no idea why it would say "MinGW-W64" for a 32-bit compile, as I think the information might have nothing to do with compilation.
"MinGW-W64" is the name of the project that is a fork of the original "MinGW" project. The latter did not support 64-bit builds while the former supports both 32 and 64 bit. So you can still make a 32-bit build with "MinGW-W64".