DoxigAlpha

plan9Ext

0c spim little-endian MIPS 3000 family 1c 68000 Motorola MC68000 2c 68020 Motorola MC68020 5c arm little-endian ARM 6c amd64 AMD64 and compatibles (e.g., Intel EM64T) 7c arm64 ARM64 (ARMv8) 8c 386 Intel x86, i486, Pentium, etc. kc sparc Sun SPARC qc power Power PC vc mips big-endian MIPS 3000 family

Function parameters

Parameters

#
arch:Cpu.Arch

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub fn plan9Ext(arch: Cpu.Arch) [:0]const u8 {
    return switch (arch) {
        .arm => ".5",
        .x86_64 => ".6",
        .aarch64 => ".7",
        .x86 => ".8",
        .sparc => ".k",
        .powerpc, .powerpcle => ".q",
        .mips, .mipsel => ".v",
        // ISAs without designated characters get 'X' for lack of a better option.
        else => ".X",
    };
}