about summary refs log tree commit diff stats
path: root/subx/apps
Commit message (Collapse)AuthorAgeFilesLines
* 4763 - back to the 'trivial' crenshaw2-1 compilerKartik Agaram2018-11-232-2/+422
| | | | | This time I've ported (and test-driven) 'GetChar' and 'GetNum'. The new tests bring together our new testable interfaces for read() and exit().
* 4756Kartik Agaram2018-11-192-0/+0
| | | | | Long-standing and long-copied typo has been messing with our exit status on test failures.
* 4755 - read-byte (sometimes called getchar)Kartik Agaram2018-11-192-0/+0
|
* 4747 - subx: 'read' primitiveKartik Agaram2018-11-182-0/+0
|
* 4745Kartik Agaram2018-11-172-0/+0
|
* 4743Kartik Agaram2018-11-122-0/+0
|
* 4741Kartik Agaram2018-10-302-0/+0
| | | | Extract a helper that we'll need for 'read'.
* 4740Kartik Agaram2018-10-302-0/+0
|
* 4736Kartik Agaram2018-10-292-0/+0
| | | | | | | | | We'll use a common stream data structure for input and output streams. Having separate types makes more sense in a more high-level language, where we have type checking and where functions for handling the different types are more concise. But in machine code the sweet spot is more toward fewer types.
* 4733Kartik Agaram2018-10-281-1/+1
|
* 4732Kartik Agaram2018-10-281-0/+0
|
* 4731Kartik Agaram2018-10-282-11/+11
|
* 4729Kartik Agaram2018-10-283-38/+50
| | | | | | Start injecting all dependencies in the Crenshaw compiler app. In the process I realized the non-fake code path of 'stop' had a bug.
* 4721Kartik Agaram2018-10-242-0/+0
|
* 4713Kartik Agaram2018-10-212-0/+0
| | | | | | | | Initial sketch of a dependency-injected wrapper around the exit() syscall. I don't have the primitives yet, just a sketch of how they should work -- and a passing test for non-local jumps without support for passing the exit status to the caller.
* 4711Kartik Agaram2018-10-172-0/+0
| | | | | | | Extract a helper for appending strings to raw buffers. I'd been resisting this idea, but it actually turns out to be a pretty clean abstraction in the end.
* 4710Kartik Agaram2018-10-173-8/+8
| | | | | Start using write() instead of _write().. and we promptly find a typo when dealing with real file descriptors.
* 4707 - subx: dependency-injected write() primitiveKartik Agaram2018-10-162-0/+0
|
* 4703Kartik Agaram2018-10-161-4/+4
|
* 4700Kartik Agaram2018-10-161-2/+2
|
* 4699Kartik Agaram2018-10-143-43/+16
|
* 4698Kartik Agaram2018-10-141-4/+4
|
* 4697Kartik Agaram2018-10-142-0/+0
|
* 4691Kartik Agaram2018-10-132-0/+0
| | | | All tests now once again run the same natively and on VM.
* 4684Kartik Agaram2018-10-113-2/+3
| | | | | | | | | | Turns out the tests for 'trace' have been broken in native mode since the original commit (4674). Dangers of running my tests on Darwin, where I can't run them natively. The test failures didn't get flagged on CI because I'd forgotten to update the exit code of the factorial app in commit 4664. At least that's fixed in this commit.
* 4682 - subx: start testing all layers of 'library'Kartik Agaram2018-10-102-0/+0
|
* 4674Kartik Agaram2018-10-082-0/+0
| | | | subx: append to trace
* 4670Kartik Agaram2018-10-051-1/+1
|
* 4668Kartik Agaram2018-10-052-8/+8
|
* 4667Kartik Agaram2018-10-054-20/+20
| | | | | Standardize on hyphens in all names. And we'll use colons for namespacing labels in functions.
* 4664 - subx: reflect test failures in exit statusKartik Agaram2018-10-052-0/+0
|
* 4663Kartik Agaram2018-10-051-1/+1
|
* 4662Kartik Agaram2018-10-052-2/+2
|
* 4661Kartik Agaram2018-10-042-0/+0
| | | | | Make segment management a little more consistent between initial segments and add-on segments (using `mmap`).
* 4658 - subx: string_equalKartik Agaram2018-10-022-0/+0
|
* 4655Kartik Agaram2018-10-022-3/+3
|
* 4653Kartik Agaram2018-10-021-3/+3
|
* 4651Kartik Agaram2018-10-021-1/+3
|
* 4645Kartik Agaram2018-10-011-0/+0
|
* 4644Kartik Agaram2018-10-014-24/+24
|
* 4641Kartik Agaram2018-10-013-1/+1
|
* 4638 - extract some common libraries from appsKartik Agaram2018-10-014-644/+4
| | | | | | | I'm still trying to figure out what the defaults should be. At the moment you have to explicitly pass in every file you want loaded into the output binary. Maybe that control is a good thing. The examples need no libraries so far.
* 4624Kartik Agaram2018-09-302-2/+2
| | | | | | | | Start requiring a '-o' flag to designate the output binary when translating. Things currently get funky if you pass in multiple inputs, but that's ok. This is the first step to supporting multiple input files for a single output binary.
* 4518Kartik Agaram2018-09-244-44/+117
|
* 4517Kartik Agaram2018-09-242-13/+13
|
* 4516Kartik K. Agaram2018-09-244-42/+64
| | | | | | | More calling convention tweaks. Use EBP to get consistently at parameters and locals. Always put the first function argument closest to EBP.
* 4514Kartik Agaram2018-09-242-3/+11
| | | | Get the calling convention right, per http://www.cs.virginia.edu/~evans/cs216/guides/x86.html
* 4513Kartik Agaram2018-09-242-8/+0
|
* 4511Kartik Agaram2018-09-231-0/+0
|
* 4510Kartik Agaram2018-09-232-4/+270
| | | | | Add the test harness to the crenshaw compiler. Though we aren't calling it yet. But that's because we aren't actually doing anything useful yet.
the previous revision' href='/akkartik/mu/blame/apps/mulisp.subx?h=main&id=6a51218e12ce75e51301b834e1c48e86aefedc1e'>^
1fafe7af ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234