"vscode:/vscode.git/clone" did not exist on "92c615b6edabe00ffe5a0f7fa6e2f73e8b846beb"
Commit 8af24420 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

results.tex line counts for corundum

parent 4ebf781c
all: build/results.tex
clean:
rm -rf build
build/results.tex: build/loc_corundum_bm build/loc_corundum_verilator
@echo '%' This is generated with make in the results directory \
of the ehsim repo >$@
cat $^ >>$@
# Lines of code in corundum
build/loc_corundum_bm: loccount_corundum_bm.sh
@mkdir -p $(dir $@)
bash loccount_corundum_bm.sh >$@
build/loc_corundum_verilator: loccount_corundum_verilator.sh
@mkdir -p $(dir $@)
bash loccount_corundum_verilator.sh >$@
#!/bin/bash
dir=../corundum_bm
cpp_lines="`cloc --csv $dir/{corundum_bm.cc,corundum_bm.h} | tail -n1 | sed 's/.*,//'`"
echo "\\newcommand{\\DataLocCorundumBM}{$cpp_lines}"
#!/bin/bash
dir=../corundum
vsrcs=""
for f in `sed 's/.*://' $dir/obj_dir/Vinterface__ver.d`
do
if [[ "$f" == *.v ]]
then
vsrcs="$vsrcs $dir/$f"
fi
done
verilog_lines="`cloc --csv $vsrcs | tail -n1 | sed 's/.*,//'`"
cpp_lines="`cloc --csv $dir/*.cpp $dir/*.h | tail -n1 | sed 's/.*,//'`"
echo "\\newcommand{\\DataLocCorundumVVerilog}{$verilog_lines}"
echo "\\newcommand{\\DataLocCorundumVCPP}{$cpp_lines}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment