MCPcopy Index your code
hub / github.com/dxx/jvm-rust

github.com/dxx/jvm-rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4,940 symbols 11,268 edges 898 files 510 documented · 10% updated 47d ago★ 43
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jvm-rust

参考自己动手写 Java 虚拟机源码,用 Rust 语言实现 JVM。

开发环境

  • MacOS Monterey 12.1
  • Rust 1.57.0
  • JDK 1.8

目录说明

本源码目录结构按照 jvmgo-book 组织,说明如下:

  • ch01_cmd: 命令行处理
  • ch02_classpath: 查找 Class 文件
  • ch03_classfile: 解析 Class 文件
  • ch04_rtda: 运行时数据区
  • ch05_instructions: 指令集和解释器
  • ch06_rtda_heap: 类和对象
  • ch07_method_invoke: 方法调用和返回
  • ch08_array_string: 数组和字符串
  • ch09_native: 本地方法调用
  • ch10_exception: 异常处理

java 目录存放测试使用的 Java 代码。

运行

参考每个目录中的 README.md

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 2,851
Class 1,632
Function 414
Interface 43

Languages

Rust98%
Java2%

Modules by API surface

ch10_exception/src/rtda/heap/class.rs55 symbols
ch09_native/src/rtda/heap/class.rs53 symbols
ch08_array_string/src/rtda/heap/class.rs49 symbols
ch07_method_invoke/src/rtda/heap/class.rs41 symbols
ch06_rtda_heap/src/rtda/heap/class.rs38 symbols
ch10_exception/src/rtda/heap/method.rs28 symbols
ch09_native/src/rtda/heap/method.rs26 symbols
ch08_array_string/src/rtda/heap/method.rs24 symbols
ch07_method_invoke/src/rtda/heap/method.rs24 symbols
ch10_exception/src/rtda/object.rs21 symbols
ch09_native/src/rtda/object.rs21 symbols
ch06_rtda_heap/src/rtda/heap/method.rs21 symbols

For agents

$ claude mcp add jvm-rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page