aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
Commit message (Collapse)AuthorAge
* codegen: use s registers instead of tMathias Magnusson2025-06-02
| | | | | | | doesn't make any difference yet and I don't know exactly when to use what when it starts to matter. but binary ninja thought that syscalls could override t registers (which is not the case) so this makes decompilations slightly nicer
* make print return integer lengthMathias Magnusson2025-06-02
|
* dont set quotient in every loop iteration in integer print procedureMathias Magnusson2025-06-02
|
* add identifiers, procedure calls and a built in print procedureMathias Magnusson2025-06-01
|
* codegen: fix some small bugsMathias Magnusson2025-06-01
|
* codegen: add RV64M extensionMathias Magnusson2025-06-01
|
* add subtractionMathias Magnusson2025-06-01
|
* codegen: make register allocation fail with error rather than returning nullMathias Magnusson2025-06-01
|
* codegen integer literals correctlyMathias Magnusson2025-05-31
| | | | This was not as easy as one would expect ☠️
* Refactor codegen a bitMathias Magnusson2025-05-31
|
* actually codegen the provided codeMathias Magnusson2025-05-31
| | | | | | ... well, since all we can do is to add integer literals, we produce code for the calculations and then perform the exit syscall with the result
* write a riscy little elfMathias Magnusson2025-05-30
|
* create initial simple elf fileMathias Magnusson2025-05-29