From 9f261587a75d5fa21ef63fd9a38e0f7851180adf Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 30 Apr 2024 15:54:47 +0300 Subject: reference qbe and fix markdown formatting --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0352759..101e18c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,17 @@ # qbt -Optimizing middle/back end for triscv. +Optimizing middle/back end for triscv. Takes pretty heavy inspiration from QBE: +https://c9x.me/compile/ + +Instruction documentation is TODO, please see `src/parser.y` for current list of +instructions. They may still change in the near future. # ABI +Currently I'm assuming the ABI to be according to the following table, but this +is not quite set in stone yet. + +``` | Register | Name | |----------|------| | x0 | x0 @@ -87,3 +95,4 @@ Optimizing middle/back end for triscv. | x78 | s22 | x79 | s23 | x80 | tmp2 +``` -- cgit v1.3