I have been able to make a custom build of asmFish on Linux. However, I have been unable to do so on macOS. I've seen a Mac version of the FASM compiler on the Internet. But when I tried using it for building it, it didn't generate a binary that could be run.

I am running the latest macOS at time of writing. Any help appreciated.

  • I think your question is too hard-core for this forum. Try talkchess or ASM's github page? – SmallChess Nov 7 '16 at 11:24

asmFish is NOT the same as Stockfish, so the answer by Dave is wrong. If asmFish ever catches up Stockfish in patches, then it will find the best moves ~20% faster, as it is written in Assembly.

Here is an issue I opened to test basically the time fasmg did to compile asmFish. It was closed, however, because latest fasmg fails to compile asmFish. The latest working version is this.

You can download the version you want, but this is not really needed. You just need to open a command line and clone the repository:

git clone -b master https://github.com/lantonov/asmFish.git

Then, cd to the folder the repository was cloned and run make.bat. You will be given a menu, which will also give an option to compile asmFish for any OS you want.

For what it's worth:

  • There are already MacOS binaries in the main repository. They are in the MacOS_binaries folder.
  • There is also an archive of the executables in the executables branch, which is rarely updated.
  • You can directly compile asmFish from MacOS from the command line just having the whole x86 folder and the fasmg file:

    fasmg "x86\fish.asm" "asmFishX_type" -e 1000 -i "VERSION_OS='X'" -i "PEDANTIC = 1" -i "VERSION_POST = 'version'"

Replace type and version with the version post you want (base, popcnt, bmi1 and bmi2)

| improve this answer | |

You can download Stockfish for OS X already built. https://stockfishchess.org/

| improve this answer | |
  • I think it does. A complied binary of asmFish = Stockfish. If the user is asking a computer programming question then yes, as mentioned by Student T above, this is the wrong forum. – Dave Kanter Nov 14 '16 at 19:22
  • 1
    No, asmFish is absolutely not the same as Stockfish. asmFish is a reimplementation of Stockfish's algorithms in x86 assembly. It has an entirely different codebase (GitHub repo). Downloading a build of SF will not get you a build of asmFish. – MultiplyByZer0 May 27 '19 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.