compiler

package module
v0.0.0-...-00392ab Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileCode

func CompileCode(config Config) (ret error)

func CompileShellcode

func CompileShellcode(
	shellcodeFileName string,
	instructions, registers map[string]int64,
) ([]byte, error)

Compile takes a viper config with all shellcode's compilation options

Types

type Config

type Config struct {
	ShellcodeFile       string
	BuildDir, OutputDir string
	Instructions        map[string]int64 `yaml:"instructions"`
	Registers           map[string]int64 `yaml:"registers"`
	GolangPath          string           `yaml:"go_path"`
}

Jump to

Keyboard shortcuts

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