Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Update ELF psABI document
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeFlyingSheep committed Oct 11, 2021
1 parent 6730b9d commit 50e62f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions docs/LoongArch-ELF-ABI-CN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ v1.00

|$r22
|$fp/$s9
|栈帧指针 / 跨调用保存值
|栈帧指针 / 静态寄存器
|是

|$r23-$r31
|$s0-$s8
|跨调用保存值
|静态寄存器
|是
|===

Expand Down Expand Up @@ -94,10 +94,13 @@ v1.00

|$f24-$f31
|$fs0-$fs7
|跨调用保存值
|静态寄存器
|是
|===

临时寄存器也被称为调用者保存寄存器。
静态寄存器也被称为被调用者保存寄存器。

== C 语言数据类型规格

.LP64 ABI
Expand Down
13 changes: 8 additions & 5 deletions docs/LoongArch-ELF-ABI-EN.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ v1.00

|$r12-$r20
|$t0-$t8
|Temp registers
|Temporary registers
|No

|$r21
Expand All @@ -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
|===

Expand All @@ -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
Expand Down

0 comments on commit 50e62f1

Please sign in to comment.