about summary refs log tree commit diff stats
path: root/subx/examples/ex1.subx
Commit message (Collapse)AuthorAgeFilesLines
* 5404 - subx/examples/ex1 now translatingKartik Agaram2019-07-151-0/+3
| | | | | | | | | | | | | | | | | | | The result isn't an identical binary to before, and it segfaults when run. But it's bugfix seven. A couple of places where we make .subx files a little more strict: a) All .subx files must define a data segment. Even if they have no data. b) All .subx files must define an `Entry` label for the binary to start at. Earlier we used to default to the start of the code label. That's not too hard to add; we'd just need to: i) rename `get` to `get-or-abort` ii) clone a third variant of `get-or-insert` called `get` that returns null if the key is not found. iii) use `get` rather than `get-or-abort` when looking up the `Entry` label.
* switch to new syntax for segment headers in C++Kartik Agaram2019-05-181-1/+1
|
* 4893Kartik Agaram2018-12-301-2/+2
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-2/+2
|
* 4802Kartik Agaram2018-11-301-1/+1
| | | | | | | | | | | | | | | | Some automated commenting cleanup. Still needs more careful manual scanning. sed -i 's/^# 1-3/# . 1-3/' *.subx */*.subx sed -i 's/^# op/# . op/' *.subx */*.subx sed -i 's/# vim/# . . vim/' *.subx */*.subx sed -i 's/^ # push args/ # . . push args/' *.subx */*.subx sed -i 's/^ # discard args/ # . . discard args/' *.subx */*.subx sed -i 's/^ # call/ # . . call/' *.subx */*.subx sed -i 's/^ # prolog/ # . prolog/' *.subx */*.subx sed -i 's/^ # epilog/ # . epilog/' *.subx */*.subx sed -i 's/^ # save registers/ # . save registers/' *.subx */*.subx sed -i 's/^ # restore registers/ # . restore registers/' *.subx */*.subx sed -i 's/ operand / register /' *.subx */*.subx
* 4792Kartik Agaram2018-11-281-2/+2
| | | | Thanks Pelle Hjek for the feedback: http://arclanguage.org/item?id=20870
* 4780Kartik Agaram2018-11-261-0/+1
|
* 4669Kartik Agaram2018-10-051-7/+4
|
* 4668Kartik Agaram2018-10-051-2/+2
|
* 4662Kartik Agaram2018-10-051-1/+1
|
* 4650Kartik Agaram2018-10-021-2/+2
|
* 4644Kartik Agaram2018-10-011-1/+1
|
* 4639Kartik Agaram2018-10-011-3/+3
|
* 4624Kartik Agaram2018-09-301-1/+1
| | | | | | | | 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.
* 4622Kartik Agaram2018-09-301-0/+20
When I started SubX I imagined that being able to write machine code directly was a feature. Now it's just a hole I haven't bothered closing yet.