src

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0, AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WaBackend_Default = WaBackend_wat // 默认

	WaBackend_wat = "wat" // 输出 wat
)

编译器后端类型

View Source
const (
	WaOS_Default = WaOS_js // 默认

	WaOS_js      = "js"      // 浏览器 JS
	WaOS_wasi    = "wasi"    // WASI 接口
	WaOS_wasm4   = "wasm4"   // WASM4 游戏
	WaOS_arduino = "arduino" // Arduino 平台
	WaOS_unknown = "unknown" // Unknown
)

目标平台类型, 可管理后缀名

View Source
const (
	WaArch_Default = WaArch_wasm // 默认
	WaArch_wasm    = "wasm"      // wasm 平台
)

体系结构类型

Variables

View Source
var WaArch_List = []string{
	WaArch_wasm,
}

CPU 列表

View Source
var WaBackend_List = []string{
	WaBackend_wat,
}

后端列表

OS 列表

Functions

func CheckWaOS

func CheckWaOS(os string) bool

检查 OS 值是否 OK

func GetBaseImportCode

func GetBaseImportCode(waos string) string

获取宿主基础代码

func GetBaseWsCode

func GetBaseWsCode(backend, targetOS string) string

获取汇编基础代码

func GetStackSize added in v0.15.0

func GetStackSize(backend, targetOS string) int

获取栈大小(需要和 base.wat.ws 一致)

func GetStdFS

func GetStdFS() fs.FS

func GetStdPkgList

func GetStdPkgList() []string

func GetStdTestPkgList

func GetStdTestPkgList() []string

func IsStdPkg

func IsStdPkg(pkgpath string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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