about summary refs log tree commit diff stats
path: root/apps/subx-params.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-19 21:01:43 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-19 23:25:49 -0700
commitfd91f7f61bfa84cbc24590d5394d75891cc1cfcc (patch)
tree6cbaebc23ed7c3b8627dac22e7054f14c4d38fe9 /apps/subx-params.subx
parent881c7f02708ceaef54a0d8b5fcc136a3003d3e09 (diff)
downloadmu-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.subx15
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
7' href='#n17'>17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169