go-jvm

command module
v0.0.0-...-09ea784 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 6 Imported by: 0

README

go-jvm

A toy JVM written in Go.

Please see:

https://github.com/zxh0/jvm.go
https://github.com/zxh0/jvmgo-book

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
instructions
constants
常量指令把常量推入操作数栈顶。
常量指令把常量推入操作数栈顶。
loads
加载指令从局部变量表获取变量,然后推入操作数栈顶。
加载指令从局部变量表获取变量,然后推入操作数栈顶。
stack
栈指令直接对操作数栈进行操作,共9条: pop和pop2指令将栈顶变量弹出, dup系列指令复制栈顶变量, swap指令交换栈顶的两个变量。
栈指令直接对操作数栈进行操作,共9条: pop和pop2指令将栈顶变量弹出, dup系列指令复制栈顶变量, swap指令交换栈顶的两个变量。
stores
存储指令与加载指令刚好相反,存储指令把变量从操作数栈顶弹出,然后存入局部变量表。
存储指令与加载指令刚好相反,存储指令把变量从操作数栈顶弹出,然后存入局部变量表。

Jump to

Keyboard shortcuts

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