Documentation ¶
Index ¶
- Constants
- Variables
- func CheckWaOS(os string) bool
- func GetBaseImportCode(waos string) string
- func GetBaseWsCode(backend, targetOS string) string
- func GetStackSize(backend, targetOS string) int
- func GetStdFS() fs.FS
- func GetStdPkgList() []string
- func GetStdTestPkgList() []string
- func IsStdPkg(pkgpath string) bool
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, }
后端列表
View Source
var WaOS_List = []string{ WaOS_js, WaOS_wasi, WaOS_wasm4, WaOS_arduino, WaOS_unknown, }
OS 列表
Functions ¶
func GetStackSize ¶ added in v0.15.0
获取栈大小(需要和 base.wat.ws 一致)
func GetStdPkgList ¶
func GetStdPkgList() []string
func GetStdTestPkgList ¶
func GetStdTestPkgList() []string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.