go-json/internal/cmd/generator/Makefile

9 lines
376 B
Makefile
Raw Normal View History

2021-12-27 19:13:18 +03:00
.PHONY: asm
asm:
2021-12-29 15:23:36 +03:00
clang -Wall -S -O2 -mavx2 -masm=intel -mno-red-zone -mstackrealign -mllvm -inline-threshold=1000 -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti -c ./simd/string.c
2021-12-27 19:13:18 +03:00
.PHONY: generate
generate:
docker build -f Dockerfile.simd -t go-json-simd .
2021-12-27 19:37:33 +03:00
docker run --rm -v "$(CURDIR)/simd:/tmp" go-json-simd bash -c "cp /work/string_avx.s /tmp/string_avx.s"