Skip to content

Commit

Permalink
Update makefile switches
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Apr 13, 2024
1 parent 157380e commit ea0c1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/containers/simdhash-benchmark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ dn_deps := $(wildcard ../*.c) $(wildcard ../*.h)
benchmark_deps := $(wildcard ./*.c) $(wildcard ./*.h)

benchmark_sources := ../dn-simdhash.c ../dn-vector.c ./benchmark.c ../dn-simdhash-u32-ptr.c ../dn-simdhash-string-ptr.c ./ghashtable.c ./all-measurements.c
common_options := -g -Oz -DNO_CONFIG_H -lm
common_options := -g -O3 -DNO_CONFIG_H -lm -DNDEBUG

benchmark-native: $(dn_deps) $(benchmark_deps)
clang $(benchmark_sources) $(common_options) -DSIZEOF_VOID_P=8

benchmark-wasm: $(dn_deps) $(benchmark_deps)
~/Projects/emscripten/emcc $(benchmark_sources) $(common_options) -DSIZEOF_VOID_P=4 -msimd128
~/Projects/emscripten/emcc $(benchmark_sources) $(common_options) -DSIZEOF_VOID_P=4 -mbulk-memory -msimd128

disassemble-benchmark: benchmark-native benchmark-wasm
objdump -d ./a.out > ./a.dis
Expand Down

0 comments on commit ea0c1f8

Please sign in to comment.