Michael Forney: 2
parse: use dynamically sized hashtable for temporaries
parse: use dynamically sized hashtable for temporaries
2 files changed, 20 insertions(+), 12 deletions(-)
Quentin Carbonneaux <quentin@c9x.me> wrote:
> > during zig bootstrap drops from 17m15s to 2.5s (over 400x
> > speedup).
>
> Is there a place where I can read more about this line of work?
I just tried it since andrewrk mentioned it in #musl.
To try yourself, you can clone the zig repository, then
cproc -o bootstrap bootstrap.c
CC=cproc ./bootstrap
I also needed a small patch to prevent the generated C from loading
an uninitialized variably in a dead code path (slot %.174 is read
but never stored to).
It seems that everything is able to compile except for one function
`f17`, which gives
rega.c: dying: cannot have more moves than registers
I haven't yet tried to minimize the function yet.