asm

package module
v0.0.0-...-510905f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAsm

func GenAsm(f AvoMainFunc)

GenAsm is our main entry point for ASM code generation. It augments avo flags with a "-arch", the content of which is exposed in AvoContext. That value also drives the alignments in the generated code.

Types

type AvoContext

type AvoContext struct {
	*build.Context
	Arch string
}

AvoContext is an extended context for Avo that conveys information about the target architecture. In particular this allows some level of abstraction over registers.

func (*AvoContext) INL

func (ctx *AvoContext) INL()

INL is the INL instruction.

func (*AvoContext) INSB

func (ctx *AvoContext) INSB()

INSB is the INSB instruction.

func (*AvoContext) OUTSB

func (ctx *AvoContext) OUTSB()

OUTSB is the OUTSB instruction.

func (*AvoContext) REP

func (ctx *AvoContext) REP()

REP is the REP instruction.

type AvoMainFunc

type AvoMainFunc func(ctx *AvoContext) error

AvoMainFunc is the type of functions that can be used with GenAsm.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL