12:04:43ShinmeraA register allocator is the second thing we had to write in my compiler class :)
12:05:40|3b|yeah, probably did that at some point too :)
12:06:46|3b|ACTION currently has a register allocator that just increments a counter when it sees a new variable, which worked for some trivial things, but starts to not be enough
12:07:24|3b|i theoretically have 64k 'registers', but some instructions can only use the first 16 or 256 of them
12:12:37|3b|maybe i can get away with just reserving some low registers for function calls and such that are limited to 16, and copy as needed
12:54:04|3b|yeah, that seems to have worked well enough for now :p