about summary refs log tree commit diff stats
path: root/apps/mu.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-25 22:13:31 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-25 22:32:56 -0700
commit475da72c614ddee250c9542f23e81b6112b0efb8 (patch)
treed8b3825a1ffe4aff733e2cb83b779f18752e07cd /apps/mu.subx
parent10d5b13af8cbafe9466426bddd248f6dafb08589 (diff)
downloadmu-475da72c614ddee250c9542f23e81b6112b0efb8.tar.gz
7109
Turns out I've been including some unnecessary files when building apps/mu!

Treeshaken stats before:
  LoC 26258 => 9717
  LoC including common libraries: 29736 => 12719
  binary size: 406K  => 79K

After:
  LoC 26258 => 9717
  LoC including common libraries: 28322 => 12370
  binary size: 406K  => 77K

So our treeshaking isn't perfect. No surprise there..

The treeshaken build also starts to fail without the one-liner change to
mu.subx, which looks like a bug in the treeshaker.
Diffstat (limited to 'apps/mu.subx')
-rw-r--r--apps/mu.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 1103de23..db5c8b69 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -22565,7 +22565,7 @@ Int-var-in-eax:
     1/imm32/some-block-depth
     0/imm32/no-stack-offset
     0x11/imm32/alloc-id:fake
-    $Register-eax/imm32
+    $Mu-register-eax/imm32  # can't use Register-eax only to keep our buggy tools/treeshake.cc happy (TODO)
 
 Single-int-var-in-ecx:  # (payload list var)
     0x11/imm32/alloc-id:fake:payload