Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | bugfix: don't add multiple exits to basic blocks | Mathias Magnusson | 2025-08-03 |
| | |||
* | assert that block ending instructions happen only & exactly at the end of ↵ | Mathias Magnusson | 2025-08-01 |
| | | | | each block | ||
* | use saved rregisters when needed | Mathias Magnusson | 2025-07-31 |
| | | | | & store and restore saved registers on the stack | ||
* | implement return expressions | Mathias Magnusson | 2025-07-30 |
| | |||
* | implement `==` | Mathias Magnusson | 2025-07-30 |
| | |||
* | store parameter on the stack | Mathias Magnusson | 2025-07-30 |
| | |||
* | store local variables on the stack | Mathias Magnusson | 2025-07-29 |
| | |||
* | make parameters usable | Mathias Magnusson | 2025-07-29 |
| | |||
* | continue continuing procedure calls | Mathias Magnusson | 2025-07-29 |
| | |||
* | continue implementing procedure calls | Mathias Magnusson | 2025-07-24 |
| | | | | | | multiple procedures can now exist, but you cannot call them, the first one is the "main" procedure since it happens to be placed first in the binary, and all procedures end with an exit system call | ||
* | implement comparisons | Mathias Magnusson | 2025-07-03 |
| | |||
* | make local variables work separately from temporary values | Mathias Magnusson | 2025-06-17 |
| | |||
* | add while loops | Mathias Magnusson | 2025-06-07 |
| | |||
* | add variable reassignments and basic block arguments | Mathias Magnusson | 2025-06-07 |
| | |||
* | assert that each block ends with an instruction which may do so | Mathias Magnusson | 2025-06-06 |
| | |||
* | begin implementing if expressions | Mathias Magnusson | 2025-06-04 |
| | | | | | | registers are used over block boundaries though, which doesn't work very well so i turned off register freeing to make it look like it works (unless you create more than 12 values total) | ||
* | add { blocks } with scoped local variables | Mathias Magnusson | 2025-06-03 |
| | |||
* | remove the need for explicit discard instructions | Mathias Magnusson | 2025-06-02 |
| | | | | | | | by also considering an instruction's destination register(s) to be uses and when cleaning up registers, also cleaning up those from previous instructions (specifically this is the output of the last instruction if it is not used anywhere) | ||
* | add read_int built in procedure | Mathias Magnusson | 2025-06-02 |
| | |||
* | stop freeing vregs twice when they are used twice in an instr | Mathias Magnusson | 2025-06-02 |
| | |||
* | add variable declarations | Mathias Magnusson | 2025-06-02 |
| | |||
* | make print return integer length | Mathias Magnusson | 2025-06-02 |
| | |||
* | add statements ending in ; and allow parsing multiple of them | Mathias Magnusson | 2025-06-02 |
| | |||
* | add identifiers, procedure calls and a built in print procedure | Mathias Magnusson | 2025-06-01 |
| | |||
* | add subtraction | Mathias Magnusson | 2025-06-01 |
| | |||
* | codegen integer literals correctly | Mathias Magnusson | 2025-05-31 |
| | | | | This was not as easy as one would expect ☠️ | ||
* | Refactor codegen a bit | Mathias Magnusson | 2025-05-31 |
| | |||
* | actually codegen the provided code | Mathias Magnusson | 2025-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 | ||
* | compile some god damn additions | Mathias Magnusson | 2025-05-29 |