crupeng-1 / ChandraChess

UCI Chess Engine written in C++
1 stars 0 forks source link

Remarks on Linux compilation #1

Open tissatussa opened 1 week ago

tissatussa commented 1 week ago

I compiled on Linux with :

g++-13 -std=c++20 -Ofast -flto -mbmi2 -mavx2 bits.cpp board.cpp evaluation.cpp hashKey.cpp main.cpp moveGenerator.cpp perft.cpp search.cpp state.cpp staticExchangeEvaluation.cpp table.cpp updateState.cpp -o ChandraChess-compiled-HP -Bstatic

and i get a valid binary of 96.3 Kb which runs fine in CuteChess GUI. Note that i used g++-13 because this version can do -std=c++20. I also added the compiler options for avx and bmi, i don't know if they're helpful to create a faster binary, but i learned these options will not disturb the compilation.

I created a folder for the engine, also containing nnue.txt and time_management_table.txt, because i think they're needed by the engine, am i right? If so, you could mention that in the README.

AdityaChandra316 commented 5 days ago

https://github.com/AdityaChandra316/ChandraChess/ is where the new repo is I moved it since I don't have access to the account of this repo btw... And yes, you are right, the text files are needed.