diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-09-19 21:01:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-09-19 23:25:49 -0700 |
commit | fd91f7f61bfa84cbc24590d5394d75891cc1cfcc (patch) | |
tree | 6cbaebc23ed7c3b8627dac22e7054f14c4d38fe9 /apps/subx-params.subx | |
parent | 881c7f02708ceaef54a0d8b5fcc136a3003d3e09 (diff) | |
download | mu-fd91f7f61bfa84cbc24590d5394d75891cc1cfcc.tar.gz |
5675 - move helpers from subx-common into layers
This undoes 5672 in favor of a new plan: Layers 000 - 099 are for running without syntax sugar. We use them for building syntax-sugar passes. Layers 100 and up are for running with all syntax sugar. The layers are arranged in approximate order so more phases rely on earlier layers than later ones. I plan to not use intermediate syntax sugar (just sigils without calls, or sigils and calls without braces) anywhere except in the specific passes implementing them.
Diffstat (limited to 'apps/subx-params.subx')
-rw-r--r-- | apps/subx-params.subx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/subx-params.subx b/apps/subx-params.subx new file mode 100644 index 00000000..38a34314 --- /dev/null +++ b/apps/subx-params.subx @@ -0,0 +1,15 @@ +# Various knobs for translating SubX programs using SubX. + +== data + +# largest segment that can be translated +Segment-size: + 0x80000/imm32/512KB + +# maximum size of input textual stream (spanning all segments) +Input-size: + 0x100000/imm32/1MB + +# number of labels we can translate to addresses +Max-labels: + 0x10000/imm32/4K-labels/64KB |