Crafty
Crafty copied to clipboard
x86 architecture independent code
The aim of the modification is the possibility to compile Crafty for other architectures besides x86. The modification has been tested on aarch64 (Raspberry pi 4B) and riscv64(Starfive Visionfive 2) (all under Linux) in addition to x86. A change in the Makefile allows custom CFLAGS to be used in the make command and x86 dependent flag. A change in lock.h removes x86 dependent code.
This looks useful to me.
One other fix could be rolled into the Makefile here: the unix-clang
target should have -fprofile-instr-use=...
instead of -fprofile-use
in LDFLAGS as well as CFLAGS.