commit aa6ec7470ebfa0320f94e3be107509317d85fef7
parent 935b0db17b846de4d163397d2b78691aab1cc8f2
Author: Virgil Dupras <hsoft@hardcoded.net>
Date: Sat, 19 Nov 2022 12:19:00 -0500
Update codesize.sh to give stats more in line with my claims from docs
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/codesize.sh b/codesize.sh
@@ -2,13 +2,13 @@
echo "Lines of code in Dusk OS"
echo "The whole shebang, including apps, docs, tests"
find fs -type f | xargs cat | wc -l
-echo "The Dusk system (no doc, tests, apps):"
+echo "The Dusk system (includes all arches, CC, drivers excludes docs, app, tests):"
find fs -type f | grep -vE "fs/(tests|doc|app)" | xargs cat | wc -l
echo "...excluding empty lines and comments:"
find fs -type f | grep -vE "fs/(tests|doc|app)" | xargs cat | grep -v "^\\\\" | grep -v '^$' | wc -l
-echo "C compiler:"
-find fs/cc -type f | xargs cat | wc -l
-echo "...excluding empty lines and comments:"
-find fs/cc -type f | xargs cat | grep -v "^\\\\" | grep -v '^$' | wc -l
+echo "C compiler, excluding arch-specific backends:"
+cat fs/cc/*.fs fs/cc/vm/common* fs/cc/vm/vm.fs | wc -l
+echo "i386 assembler and CC backend"
+cat fs/asm/i386.fs fs/cc/vm/i386.fs | wc -l
echo "Test code:"
find fs/tests -type f | xargs cat | wc -l