Skip to content

Commit b74a84c

Browse files
authored
Rollup merge of #114316 - ecnelises:aix_doc, r=workingjubilee
Add AIX platform support document
2 parents 750c2ec + b9b7982 commit b74a84c

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

src/doc/rustc/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- [mipsel-sony-psx](platform-support/mipsel-sony-psx.md)
4242
- [mipsisa\*r6\*-unknown-linux-gnu\*](platform-support/mips-release-6.md)
4343
- [nvptx64-nvidia-cuda](platform-support/nvptx64-nvidia-cuda.md)
44+
- [powerpc64-ibm-aix](platform-support/aix.md)
4445
- [riscv32imac-unknown-xous-elf](platform-support/riscv32imac-unknown-xous-elf.md)
4546
- [sparc-unknown-none-elf](./platform-support/sparc-unknown-none-elf.md)
4647
- [*-pc-windows-gnullvm](platform-support/pc-windows-gnullvm.md)

src/doc/rustc/src/platform-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ target | std | host | notes
310310
`powerpc64-wrs-vxworks` | ? | |
311311
`powerpc64le-unknown-linux-musl` | ? | |
312312
[`powerpc64-unknown-openbsd`](platform-support/openbsd.md) | ✓ | ✓ | OpenBSD/powerpc64
313-
`powerpc64-ibm-aix` | ? | | 64-bit AIX (7.2 and newer)
313+
[`powerpc64-ibm-aix`](platform-support/aix.md) | ? | | 64-bit AIX (7.2 and newer)
314314
`riscv32gc-unknown-linux-gnu` | | | RISC-V Linux (kernel 5.4, glibc 2.33)
315315
`riscv32gc-unknown-linux-musl` | | | RISC-V Linux (kernel 5.4, musl + RISCV32 support patches)
316316
`riscv32im-unknown-none-elf` | * | | Bare RISC-V (RV32IM ISA)
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# `powerpc64-ibm-aix`
2+
3+
**Tier: 3**
4+
5+
Rust for AIX operating system, currently only 64-bit PowerPC is supported.
6+
7+
## Target maintainers
8+
9+
- QIU Chaofan `qiucofan@cn.ibm.com`, https://github.com/ecnelises
10+
- Kai LUO, `lkail@cn.ibm.com`, https://github.com/bzEq
11+
12+
## Requirements
13+
14+
This target supports host tools, std and alloc. This target cannot be cross-compiled as for now, mainly because of the unavailability of system linker on other platforms.
15+
16+
Binary built for this target is expected to run on Power7 or newer CPU, and AIX 7.2 or newer version.
17+
18+
Binary format of this platform is [XCOFF](https://www.ibm.com/docs/en/aix/7.2?topic=formats-xcoff-object-file-format). Archive file format is ['AIX big format'](https://www.ibm.com/docs/en/aix/7.2?topic=formats-ar-file-format-big).
19+
20+
## Testing
21+
22+
This target supports running test suites natively, but it's not available to cross-compile and execute in emulator.
23+
24+
## Interoperability with C code
25+
26+
This target supports C code. C code compiled by XL, Open XL and Clang are compatible with Rust. Typical triple of AIX on 64-bit PowerPC of these compilers are also `powerpc64-ibm-aix`.

0 commit comments

Comments
 (0)