about summary refs log tree commit diff stats
path: root/subx/020elf.cc
Commit message (Collapse)AuthorAgeFilesLines
* 4426 - error on unrecognized sub-commandsKartik Agaram2018-07-261-0/+1
|
* 4423Kartik Agaram2018-07-261-8/+5
| | | | Silence some messages to the console. Fixes #12.
* 4413Kartik Agaram2018-07-251-2/+2
| | | | | Never mind, let's drop unused/vestigial altogether. Use absence of names to signal unused arguments.
* 4411Kartik Agaram2018-07-251-2/+2
| | | | Port commit 4235 to subx.
* 4400 - fix a couple of warningsKartik Agaram2018-07-251-1/+0
| | | | Thanks Max Bernstein. Fixes #7.
* 4393 - undo 4362Kartik Agaram2018-07-241-1/+0
| | | | Why did I have this?
* 4363 - subx: first program using the stack segmentKartik Agaram2018-07-161-3/+4
| | | | | We allocate space for a local variable, read() a character from stdin to it, and write() it out to stdout.
* 4362Kartik Agaram2018-07-161-0/+1
|
* 4358 - verify alignment of generated ELF binaryKartik Agaram2018-07-161-1/+0
|
* 4350Kartik Agaram2018-07-151-1/+2
| | | | | | | Reorganize layers to introduce the translation workflow right at the start. We also avoid duplicating parsing code. Programs are always parsed into the `program` data structure.
* 4334Kartik Agaram2018-07-101-6/+12
| | | | Fix CI.
* 4332Kartik Agaram2018-07-091-0/+1
| | | | | | Minimize memory footprint while running subx ELF binaries. We don't use memory before address 0x08048000, so we don't need to allocate space for it.
* 4330 - start allocating data/stack/heap segmentsKartik Agaram2018-07-081-0/+10
| | | | | | | | ex4 now writes to the (global) data segment, rather than trying to write to the code segment. We still need to specify the other segments in the generated ELF, though.
* 4327Kartik Agaram2018-07-081-1/+1
| | | | Encapsulate RAM management.
* 4311 - subx running binaries with global variablesKartik Agaram2018-07-031-3/+4
| | | | | | | | | | | | | Learning to use the data segment. Currently, subx can only run the teensy files generated from flat assembler: test4 test5 test7 This is not a priority to fix. These files are just useful references to have around.
* 4310Kartik Agaram2018-07-031-0/+1
| | | | Temporarily do all prints in hex.
* 4287Kartik Agaram2018-06-281-1/+1
| | | | Fix CI. Looks like 'std::' sometimes doesn't work.
* 4286Kartik Agaram2018-06-281-25/+33
| | | | Make prints uniform.
* 4285Kartik Agaram2018-06-281-1/+1
|
* 4284 - implement first syscall for subxKartik Agaram2018-06-281-0/+1
| | | | Hopefully I won't need much more than exit, read and write.
* 4283Kartik Agaram2018-06-281-1/+1
|
* 4282 - subx now loads teensy/test4Kartik Agaram2018-06-281-13/+53
| | | | | We're now parsing the ELF spec more closely and better handling multiple program header table entries.
* 4281Kartik Agaram2018-06-281-3/+3
|
* 4279 - load_elf() now working on teensy/test5Kartik K. Agaram2018-06-271-2/+2
| | | | Turns out it was an open question I never got around to answering.
* 4277 - make room for a 'compile' sub-commandKartik Agaram2018-06-271-4/+7
|
* 4177Kartik K. Agaram2017-12-311-0/+1
| | | | Fix CI.
* 4174Kartik K. Agaram2017-12-301-0/+72
Temporary hack to debug Kragen Sitaker's VM.