Handbook
Glossary
free-positions ( registers reg-class -- avail-registers )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
Inputs
registers
an
assoc
reg-class
an
int-regs
or a
float-regs
Outputs
avail-registers
an
assoc
Word description
Creates an alist mapping registers to their desirability for allocation. 'avail-registers' is an alist and not a
hashtable
because the register allocation order is significant.
See also
register-status
Definition
USING:
arrays
assocs
sequences
;
IN:
compiler.cfg.linear-scan.allocation
:
free-positions
( registers reg-class -- avail-registers )
of
[
1/0.
2array
]
map
;