Skip to content

Commit 01ab30f

Browse files
committed
fix aapcs ABI docs, and state where which ABIs are available
1 parent 5b3ca00 commit 01ab30f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/items/external-blocks.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,30 +130,33 @@ r[items.extern.abi.platform]
130130
There are also some platform-specific ABI strings:
131131

132132
r[items.extern.abi.cdecl]
133-
* `unsafe extern "cdecl"` -- The default for x86\_32 C code.
133+
* `unsafe extern "cdecl"` -- The default for x86\_32 C code. Only available on x86\_32 targets.
134134

135135
r[items.extern.abi.stdcall]
136-
* `unsafe extern "stdcall"` -- The default for the Win32 API on x86\_32.
136+
* `unsafe extern "stdcall"` -- The default for the Win32 API on x86\_32. Only available on x86\_32 targets.
137137

138138
r[items.extern.abi.win64]
139-
* `unsafe extern "win64"` -- The default for C code on x86\_64 Windows.
139+
* `unsafe extern "win64"` -- The default for C code on x86\_64 Windows. Only available on x86\_64 targets.
140140

141141
r[items.extern.abi.sysv64]
142-
* `unsafe extern "sysv64"` -- The default for C code on non-Windows x86\_64.
142+
* `unsafe extern "sysv64"` -- The default for C code on non-Windows x86\_64. Only available on x86\_64 targets.
143143

144144
r[items.extern.abi.aapcs]
145-
* `unsafe extern "aapcs"` -- The default for ARM.
145+
* `unsafe extern "aapcs"` -- Softfloat ABI for ARM. Only available on ARM32 targets.
146146

147147
r[items.extern.abi.fastcall]
148148
* `unsafe extern "fastcall"` -- The `fastcall` ABI -- corresponds to MSVC's
149-
`__fastcall` and GCC and clang's `__attribute__((fastcall))`
149+
`__fastcall` and GCC and clang's `__attribute__((fastcall))`.
150+
Only available on x86\_32 targets.
150151

151152
r[items.extern.abi.thiscall]
152153
* `unsafe extern "thiscall"` -- The default for C++ member functions on x86\_32 MSVC -- corresponds to MSVC's
153-
`__thiscall` and GCC and clang's `__attribute__((thiscall))`
154+
`__thiscall` and GCC and clang's `__attribute__((thiscall))`.
155+
Only available on x86\_32 targets.
154156

155157
r[items.extern.abi.efiapi]
156158
* `unsafe extern "efiapi"` -- The ABI used for [UEFI] functions.
159+
Only available on x86 and ARM targets (32bit and 64bit).
157160

158161
r[items.extern.abi.platform-unwind-variants]
159162
Like `"C"` and `"system"`, most platform-specific ABI strings also have a [corresponding `-unwind` variant][unwind-behavior]; specifically, these are:

0 commit comments

Comments
 (0)