Crafty icon indicating copy to clipboard operation
Crafty copied to clipboard

x86 architecture independent code

Open mkrcmarik opened this issue 2 years ago • 1 comments

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.

mkrcmarik avatar Feb 13 '23 18:02 mkrcmarik

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.

chromi avatar Apr 26 '23 11:04 chromi