code size benchmark: separate morph function to avoid overhead from scanf/printf
This commit is contained in:
parent
959d2f9185
commit
eb29fad4b2
3 changed files with 56 additions and 74 deletions
morphisms
|
@ -22,10 +22,10 @@ code-size-benchmark: posint-dec-to-hex-generated-gcc \
|
|||
posint-dec-to-hex-generated-clang \
|
||||
posint-dec-to-hex-optimal-gcc \
|
||||
posint-dec-to-hex-optimal-clang
|
||||
INST_COUNT_GEN_GCC=$(shell gdb --batch -ex "file posint-dec-to-hex-generated-gcc" -ex "disassemble main" | wc -l)
|
||||
INST_COUNT_GEN_CLANG=$(shell gdb --batch -ex "file posint-dec-to-hex-generated-clang" -ex "disassemble main" | wc -l)
|
||||
INST_COUNT_OPT_GCC=$(shell gdb --batch -ex "file posint-dec-to-hex-optimal-gcc" -ex "disassemble main" | wc -l)
|
||||
INST_COUNT_OPT_CLANG=$(shell gdb --batch -ex "file posint-dec-to-hex-optimal-clang" -ex "disassemble main" | wc -l)
|
||||
INST_COUNT_GEN_GCC=$(shell gdb --batch -ex "file posint-dec-to-hex-generated-gcc" -ex "disassemble morph_posint_radix" | wc -l)
|
||||
INST_COUNT_GEN_CLANG=$(shell gdb --batch -ex "file posint-dec-to-hex-generated-clang" -ex "disassemble morph_posint_radix" | wc -l)
|
||||
INST_COUNT_OPT_GCC=$(shell gdb --batch -ex "file posint-dec-to-hex-optimal-gcc" -ex "disassemble morph_posint_radix" | wc -l)
|
||||
INST_COUNT_OPT_CLANG=$(shell gdb --batch -ex "file posint-dec-to-hex-optimal-clang" -ex "disassemble posint_radix" | wc -l)
|
||||
|
||||
clean:
|
||||
rm $(TARGETS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue