Kartik Agaram
37c859058d
table-based register conversion
...
Requires a change to the C++ translator: support string literals in all
segments, not just the code segment.
(The self-hosted translator already had this.)
2019-08-01 14:50:19 -07:00
Kartik Agaram
70decc7aef
.
...
First step to cleaning up `desugar-register`: extract the common '%' to
register literals.
2019-08-01 10:54:27 -07:00
Kartik Agaram
d0016e126f
desugar: code-generate %reg
...
We're no longer just emitting the register code. We emit all arguments
with appropriate metadata.
2019-07-31 19:18:28 -07:00
Kartik Agaram
34c86ff559
.
2019-07-31 17:37:09 -07:00
Kartik Agaram
129d812c2e
Merge branch 'master' into desugar
2019-07-31 17:35:15 -07:00
Kartik Agaram
0b4e8494d6
desugar: clean up top-level `convert`
...
Model it on `dquotes` rather than `pack`, since it needs almost zero
state across words.
Manual testing:
$ echo 'ab %eax' |subx run apps/desugar
ab 0
2019-07-31 17:34:30 -07:00
Kartik Agaram
1ed1d1c842
5499
2019-07-31 15:28:23 -07:00
Kartik Agaram
070d5f2fc8
Merge branch 'master' into desugar
2019-07-28 13:40:29 -07:00
Kartik Agaram
6e1eeeebfb
5485 - promote SubX to top-level
2019-07-27 17:47:59 -07:00