Skip to content

SanKing-Lee/jvmGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

用GO语言写JAVA虚拟机

参考书籍:《自己动手写Java虚拟机》 作者:张秀宏 出版社:机械工业出版社

2019.06.22

  • 可优化
    • classfile/cp_utf8/decodeMUTF8() 解码方式
    • classfile/attribute_info/newAttributeInfo() 补全所有的属性类型

2019.06.22

  • 加载classpath
    • classpath
      • Classpath.go 类路径主要分为启动类,扩展类和用户类三种
      • entry.go 定义了所有用于加载类的入口的接口
        • readClass
        • String
      • entry_zip.go 对jar文件进行解析
      • entry_composite.go 对多个组合路径进行解析
      • entry_dir.go 对目录路径进行解析
      • entry_wildcard.go 对通配符进行解析
    • cmd.go 添加Xjreoption,用于解析传入命令中的-Xjre及其对应的jre路径
    • main.go 修改startJVM,测试classpath

2019.06.19

  • 命令行工具
    • cmd.go
      • Cmd结构体
      • parseCmd()
      • printUsage()
    • main.go
      • main
      • startJVM(cmd *Cmd)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published