From 207d8d7fa637f2dcb357bb9aa7a3f73f04fab46d Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 15 Nov 2023 18:11:29 +0100 Subject: [PATCH] Bye file merged already into spec.md --- c-abi.md | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 c-abi.md diff --git a/c-abi.md b/c-abi.md deleted file mode 100644 index 4a830e014..000000000 --- a/c-abi.md +++ /dev/null @@ -1,29 +0,0 @@ -# C ABI (proposal) - -## C datatypes -| C Type | Description | Size (B) | -|:------------|:-------------------------|-------------:| -| char | Character / byte | 8 | -| short | Short integer | 16 | -| int | Integer | 32 | -| long | Long integer | 64 | -| long long | Long long integer | 64 | -| T* | Pointer | 64 | -| float | Single-precision float | 32 | -| double | Double-precision float | 64 | -| long double | Extended-precision float | **Bikeshed** | - -## Registers -| Register | ABI Name | Description | Saver | -|:---------|:---------|:---------------|:-------| -| `r0` | — | Zero register | N/A | -| `r1` | `ra` | Return address | Caller | -| `r2` | `sp` | Stack pointer | Callee | -| `r3` | `tp` | Thread pointer | N/A | - -**TODO:** Parameters - -**TODO:** Saved - -**TODO:** Temp -