Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder allows you to assemble a series of instructions.
func NewBuilder ¶
NewBuilder constructs an assembler for the given architecture.
func (*Builder) AddInstruction ¶
AddInstruction adds an instruction to the list of instructions to be assembled.
type ProgHelper ¶
type ProgHelper struct {
// contains filtered or unexported fields
}
ProgHelper provides helper methods for working with obj.Prog to maintain compatibility with the new Go 1.25 API changes, particularly the RestArgs field change from []Addr to []AddrPos.
func NewProgHelper ¶
func NewProgHelper(prog *obj.Prog) *ProgHelper
NewProgHelper creates a helper for the given prog.
func (*ProgHelper) GetRestArg ¶
func (ph *ProgHelper) GetRestArg(index int) obj.Addr
GetRestArg gets a rest argument at the given index with backward compatibility.
func (*ProgHelper) GetRestArgs ¶
func (ph *ProgHelper) GetRestArgs() []obj.Addr
GetRestArgs gets all rest arguments as a slice of Addr.
func (*ProgHelper) SetRestArg ¶
func (ph *ProgHelper) SetRestArg(index int, addr obj.Addr)
SetRestArg sets a rest argument at the given index with backward compatibility. This handles the API change from []Addr to []AddrPos in Go 1.25.
func (*ProgHelper) SetRestArgs ¶
func (ph *ProgHelper) SetRestArgs(addrs []obj.Addr)
SetRestArgs sets all rest arguments at once.
Directories
¶
| Path | Synopsis |
|---|---|
|
asm
|
|
|
arch
Package arch defines architecture-specific information and support functions.
|
Package arch defines architecture-specific information and support functions. |
|
Package bio implements common I/O abstractions used within the Go toolchain.
|
Package bio implements common I/O abstractions used within the Go toolchain. |
|
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool.
|
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool. |
|
Package buildcfg provides access to the build configuration described by the current environment.
|
Package buildcfg provides access to the build configuration described by the current environment. |
|
Package dwarf generates DWARF debugging information.
|
Package dwarf generates DWARF debugging information. |
|
package goarch contains GOARCH-specific constants.
|
package goarch contains GOARCH-specific constants. |
|
Package goexperiment implements support for toolchain experiments.
|
Package goexperiment implements support for toolchain experiments. |
|
Package hash implements hash functions used in the compiler toolchain.
|
Package hash implements hash functions used in the compiler toolchain. |
|
arm64
Package arm64 implements an ARM64 assembler.
|
Package arm64 implements an ARM64 assembler. |
|
ppc64
Package ppc64 implements a PPC64 assembler that assembles Go asm into the corresponding PPC64 instructions as defined by the Power ISA 3.0B.
|
Package ppc64 implements a PPC64 assembler that assembles Go asm into the corresponding PPC64 instructions as defined by the Power ISA 3.0B. |
|
riscv
Code generated by ./parse.py -go rv64_a rv64_d rv64_f rv64_i rv64_m rv64_q rv64_zba rv64_zbb rv64_zbs rv_a rv_d rv_f rv_i rv_m rv_q rv_s rv_system rv_v rv_zba rv_zbb rv_zbs rv_zicsr; DO NOT EDIT.
|
Code generated by ./parse.py -go rv64_a rv64_d rv64_f rv64_i rv64_m rv64_q rv64_zba rv64_zbb rv64_zbs rv_a rv_d rv_f rv_i rv_m rv_q rv_s rv_system rv_v rv_zba rv_zbb rv_zbs rv_zicsr; DO NOT EDIT. |
|
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations.
|
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations. |