about summary refs log tree commit diff stats
path: root/tools/linkify.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-11 16:52:37 -0700
committerKartik Agaram <vc@akkartik.com>2020-03-11 17:21:59 -0700
commit28746b36660093dcbf53667f4f67320d278359ea (patch)
treea3feabc3190234fcb9c2dd8802250c191c53bea2 /tools/linkify.cc
parentbfb7c601354563498433d22f4dcf3ad4280a7314 (diff)
downloadmu-28746b36660093dcbf53667f4f67320d278359ea.tar.gz
6123 - runtime helper for initializing arrays
I built this in 3 phases:
a) create a helper in the bootstrap VM to render the state of the stack.
b) interactively arrive at the right function (tools/stack_array.subx)
c) pull the final solution into the standard library (093stack_allocate.subx)

As the final layer says, this may not be the fastest approach for most
(or indeed any) Mu programs. Perhaps it's better on balance for the compiler
to just emit n/4 `push` instructions.

(I'm sure this solution can be optimized further.)
Diffstat (limited to 'tools/linkify.cc')
0 files changed, 0 insertions, 0 deletions