diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 20:42:45 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-03-27 20:42:45 -0700 |
commit | ee5e854dad5c2e5cb25bd928cc633f13e660a31d (patch) | |
tree | 3a2f4c640631f5652af451a052ef13a08274435e /ftw.h | |
parent | 137ca989b8eb496e5e2237eaf200121e3529dd1f (diff) | |
download | txr-ee5e854dad5c2e5cb25bd928cc633f13e660a31d.tar.gz txr-ee5e854dad5c2e5cb25bd928cc633f13e660a31d.tar.bz2 txr-ee5e854dad5c2e5cb25bd928cc633f13e660a31d.zip |
compiler: use counter instead of preallocating tregs.
* share/txr/stdlib/compiler.tl (compiler): new slot,
treg-cntr; slot nregs removed; tregs stack initialized to
empty list.
(compiler alloc-treg): Take from stack if possible,
otherwise create new treg using counter, up to 255.
(usr:compile-toplevel): Referenceco.treg-cntr for register
count, rather than removed co.nreg.
Diffstat (limited to 'ftw.h')
0 files changed, 0 insertions, 0 deletions