6674
This commit is contained in:
parent
cd07e9b22c
commit
de0e57d3ce
|
@ -12,7 +12,7 @@ apps/tests.subx 284 137
|
|||
apps/sigils.subx 4641 896
|
||||
apps/calls.subx 1785 448
|
||||
apps/braces.subx 360 121
|
||||
apps/mu.subx (incomplete) 18722 6044
|
||||
apps/mu.subx (incomplete) 22067 7153
|
||||
|
||||
## Total source lines needed including libraries
|
||||
Initial -whitespace/comments/tests/dead code
|
||||
|
@ -28,7 +28,7 @@ apps/tests.subx 8519 2214
|
|||
apps/sigils.subx 10578 3043
|
||||
apps/calls.subx 9242 2388
|
||||
apps/braces.subx 8545 2111
|
||||
apps/mu.subx (incomplete) 22481 8537
|
||||
apps/mu.subx (incomplete) 25565 9867
|
||||
|
||||
## executable size in KB
|
||||
Initial -tests/dead code
|
||||
|
@ -44,7 +44,7 @@ apps/tests 41 5.8
|
|||
apps/sigils 54 9.1
|
||||
apps/calls 47 7.1
|
||||
apps/braces 42 5.9
|
||||
apps/mu (incomplete) 316 49.0
|
||||
apps/mu (incomplete) 354 61.0
|
||||
|
||||
## history of apps/mu.subx
|
||||
date commit mu.subx -tests/cmts binary (KB excl. dead code)
|
||||
|
@ -66,5 +66,6 @@ user-defined types, and getting fields in them Mar 11 6135 11592
|
|||
cleanup: switch to handles everywhere May 22 6382 15014 5064 39
|
||||
|
||||
first round of prototyping and static checks Jun 21 6572 18722 6044 49
|
||||
more checks Jul 25 6674 22067 7153 61
|
||||
|
||||
vim:nowrap:tw&
|
||||
|
|
|
@ -13,7 +13,7 @@ export OS=${OS:-linux}
|
|||
|
||||
process() {
|
||||
app=$1
|
||||
tools/treeshake_translate init.$OS 0*.subx apps/subx-params.subx apps/$app.subx
|
||||
tools/treeshake_translate init.$OS [012]*.subx apps/subx-params.subx apps/$app.subx
|
||||
echo "LoC $(cat apps/$app.subx |wc -l) => $(grep -vh '^\s*$\|^\s*#' apps/$app.subx |tools/treeshake |wc -l)"
|
||||
echo "LoC including common libraries: $(cat a.in |wc -l) => $(cat a.treeshake |wc -l)"
|
||||
echo "binary size: $(ls -lh apps/$app |column 5) => $(ls -lh a.elf |column 5)"
|
||||
|
@ -26,7 +26,7 @@ then
|
|||
fi
|
||||
|
||||
echo "== deleting dead code"
|
||||
for app in factorial crenshaw2-1 crenshaw2-1b handle hex survey pack dquotes assort tests sigils calls braces
|
||||
for app in factorial crenshaw2-1 crenshaw2-1b hex survey pack dquotes assort tests sigils calls braces
|
||||
do
|
||||
echo "- $app"
|
||||
process $app
|
||||
|
@ -39,21 +39,21 @@ echo "== testing treeshaken binaries"
|
|||
for app in factorial crenshaw2-1 crenshaw2-1b
|
||||
do
|
||||
echo $app
|
||||
tools/test_treeshake_translate init.$OS 0[0-8]*.subx apps/$app.subx
|
||||
tools/test_treeshake_translate init.$OS [01]*.subx apps/$app.subx
|
||||
diff apps/$app a.elf
|
||||
done
|
||||
|
||||
for app in hex survey pack assort dquotes tests
|
||||
do
|
||||
echo $app
|
||||
tools/test_treeshake_translate init.$OS 0[0-8]*.subx apps/subx-params.subx apps/$app.subx
|
||||
tools/test_treeshake_translate init.$OS [01]*.subx apps/subx-params.subx apps/$app.subx
|
||||
diff apps/$app a.elf
|
||||
done
|
||||
|
||||
for app in sigils calls braces
|
||||
do
|
||||
echo $app
|
||||
tools/test_treeshake_translate init.$OS 0*.subx apps/subx-params.subx apps/$app.subx
|
||||
tools/test_treeshake_translate init.$OS [012]*.subx apps/subx-params.subx apps/$app.subx
|
||||
diff apps/$app a.elf
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue