about summary refs log tree commit diff stats
path: root/subx/038---literal_strings.cc
Commit message (Collapse)AuthorAgeFilesLines
* 4668Kartik Agaram2018-10-051-1/+1
|
* 4614 - redo simulated RAMKartik Agaram2018-09-291-2/+1
| | | | | | | | | | | Now simulated 'Memory' isn't just a single flat array. Instead it knows about segments and VMAs. The code segment will always be first, and the data/heap segment will always be second. The brk() syscall knows about the data segment. One nice side-effect is that I no longer need to mess with Memory initialization regardless of where I place my segments.
* 4502 - support string literals directly in codeKartik Agaram2018-09-221-0/+215
Doesn't de-duplicate in the data segment, though. If you use the literal "foo" a hundred times in your code segment you're gonna spend a hundred times the space you need to. We can now simplify our test harness a bit in the factorial app, but we still have to put in commandline args to compare with manually. We only support length-prefixed strings, not null-terminated ones.