Documentation ¶
Index ¶
- func CompactOpcodes(file string)
- func Process(assembly []string, goCompanionFile string) ([]string, error)
- func ReadLines(path string) ([]string, error)
- func StripGoasmComments(file string)
- func WriteLines(lines []string, path string, header bool) error
- type Const
- type Epilogue
- type Global
- type Label
- type Stack
- type StackArgs
- type Subroutine
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactOpcodes ¶
func CompactOpcodes(file string)
func StripGoasmComments ¶
func StripGoasmComments(file string)
Types ¶
type Epilogue ¶
type Epilogue struct { Pops []string // list of registers that are popped of the stack SetRbpInstr bool // is there an instruction to set Rbp in epilogue? StackSize uint // the size of the C stack AlignedStack bool // is this an aligned stack? AlignValue uint // alignment value in case of an aligned stack VZeroUpper bool // is there a vzeroupper instruction in the epilogue? Start, End int // start and ending lines of epilogue // contains filtered or unexported fields }
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func (Stack) GolangLocalStackFrameSize ¶
Get total local stack frame size (for Go) used in TEXT definition
func (Stack) OffsetForGoArg ¶
Get offset (from C Stack Pointer) for copy of Golang arguments 7 and higher
func (Stack) OffsetForSavedSP ¶
Get offset (from C Stack Pointer) for saving original Golang Stack Pointer
func (Stack) StackPointerOffsetForC ¶
Get offset to adjust Stack Pointer appropriately for C code
type Subroutine ¶
type Subroutine struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.