From 50e62f196afd4fae7f25dc98854167f97528046b Mon Sep 17 00:00:00 2001 From: Feiyang Chen Date: Thu, 30 Sep 2021 11:26:30 +0800 Subject: [PATCH] Update ELF psABI document --- docs/LoongArch-ELF-ABI-CN.adoc | 9 ++++++--- docs/LoongArch-ELF-ABI-EN.adoc | 13 ++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/LoongArch-ELF-ABI-CN.adoc b/docs/LoongArch-ELF-ABI-CN.adoc index 49ed224..3ed2f55 100644 --- a/docs/LoongArch-ELF-ABI-CN.adoc +++ b/docs/LoongArch-ELF-ABI-CN.adoc @@ -60,12 +60,12 @@ v1.00 |$r22 |$fp/$s9 -|栈帧指针 / 跨调用保存值 +|栈帧指针 / 静态寄存器 |是 |$r23-$r31 |$s0-$s8 -|跨调用保存值 +|静态寄存器 |是 |=== @@ -94,10 +94,13 @@ v1.00 |$f24-$f31 |$fs0-$fs7 -|跨调用保存值 +|静态寄存器 |是 |=== +临时寄存器也被称为调用者保存寄存器。 +静态寄存器也被称为被调用者保存寄存器。 + == C 语言数据类型规格 .LP64 ABI diff --git a/docs/LoongArch-ELF-ABI-EN.adoc b/docs/LoongArch-ELF-ABI-EN.adoc index 5d5ac39..3e54b6a 100644 --- a/docs/LoongArch-ELF-ABI-EN.adoc +++ b/docs/LoongArch-ELF-ABI-EN.adoc @@ -48,7 +48,7 @@ v1.00 |$r12-$r20 |$t0-$t8 -|Temp registers +|Temporary registers |No |$r21 @@ -58,12 +58,12 @@ v1.00 |$r22 |$fp/$s9 -|Frame pointer/Saved register +|Frame pointer/Static register |Yes |$r23-$r31 |$s0-$s8 -|Saved register +|Static registers |Yes |=== @@ -87,15 +87,18 @@ v1.00 |$f8-$f23 |$ft0-$ft15 -|Temp registers +|Temporary registers |No |$f24-$f31 |$fs0-$fs7 -|Saved register +|Static registers |Yes |=== +Temporary registers are also known as caller-saved registers. +Static registers are also known as callee-saved registers. + == Type Size and Alignment .LP64 ABI