Commit Graph

5 Commits

Author SHA1 Message Date
Kartik Agaram 28746b3666 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.)
2020-03-11 17:21:59 -07:00
Kartik Agaram ab02bb6632 5866
Stop requiring '--debug' in 'bootstrap run'. Now it's smart enough to turn
on when needed.

This creates some small chance of reading stale debug info for the wrong
binary, but in practice that hasn't been an issue.
2020-01-02 02:02:37 -08:00
Kartik Agaram 9e5e87ca37 5865
Give the bootstrap C++ program a less salient name.
2020-01-02 02:01:41 -08:00
Kartik Agaram 47a15082c6 5822 2019-12-22 23:39:00 -08:00
Kartik Agaram 6e1eeeebfb 5485 - promote SubX to top-level 2019-07-27 17:47:59 -07:00