compiler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAsmFiles added in v0.2.0

func AppendAsmFiles(asmFiles []string, fout *os.File)

func Compile

func Compile(universe *ast.Scope, fset *token.FileSet, pkgc *PackageToCompile, outAsmPath string, outObjPath string, declFilePath string) *ir.AnalyzedPackage

Compile compiles go files of a package into an assembly file, and copy input assembly files into it.

func CompileDecl added in v0.2.0

func CompileDecl(universe *ast.Scope, fset *token.FileSet, importPath string, declFilePath string)

Types

type PackageToCompile added in v0.2.0

type PackageToCompile struct {
	Path     string
	Name     string
	Imports  []string
	GoFiles  []string
	AsmFiles []string
}

Jump to

Keyboard shortcuts

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