2 Commits

Author SHA1 Message Date
afecbeb955 movegen-test: add set_checkers_pinners_blockers call 2024-04-02 20:40:44 +02:00
05748e19ab Makefile: build static 2024-04-02 20:38:50 +02:00
3 changed files with 8 additions and 5 deletions

View File

@@ -114,7 +114,8 @@ CFLAGS := $(strip $(CFLAGS))
#REL_CFLAGS := -Ofast
##################################### linker flags
LDFLAGS := -L$(BRLIBDIR)
LDFLAGS := --static
LDFLAGS += -L$(BRLIBDIR)
LDFLAGS += -flto
LDFLAGS := $(strip $(LDFLAGS))
@@ -256,11 +257,11 @@ cleanasmcpp:
@$(call rmfiles,$(ASMFILES) $(CPPFILES),asm and pre-processed)
%.i: %.c
@echo generating $@ (cpp processed).
@echo "generating $@ (cpp processed)."
@$(CC) -E $(CPPFLAGS) $(CFLAGS) $< -o $@
%.s: %.c
@echo generating $@ (asm).
@echo "generating $@ (asm)."
@$(CC) -S -fverbose-asm $(CPPFLAGS) $(CFLAGS) $< -o $@
##################################### LSP (ccls)

View File

@@ -237,6 +237,8 @@ int main(int __unused ac, __unused char**av)
}
/* print movelists */
send_stockfish_fen(outfd, fishpos, &fishmoves, fen);
pos_set_checkers_pinners_blockers(pos);
pos_gen_pseudomoves(pos, &pseudo);
//moves_print(&pseudo, 0);
pos_all_legal(pos, &pseudo, &legal);

View File

@@ -307,12 +307,12 @@ int main(int __unused ac, __unused char**av)
ms3_total += ms3;
if (sf_count == my_count) {
printf("pt3 OK : line=%03d perft=%lu %'ldms lps=%'lu \"%s\"\n",
printf("pt3 OK : line=%3d perft=%lu %'ldms lps=%'lu \"%s\"\n",
test_line, my_count, ms3,
ms3? my_count*1000l/ms3: 0,
fen);
} else {
printf("pt3 ERR: line=%03d sf=%lu me=%lu \"%s\"\n",
printf("pt3 ERR: line=%3d sf=%lu me=%lu \"%s\"\n",
test_line, sf_count, my_count, fen);
}
}