Skip to content

tyingq/awk-jvm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awk-jvm

a toy jvm in awk, based on this tutorial: https://zserge.com/posts/jvm/

notes

  • this requires gawk, because of functions and the builtin strtonum
  • since none of the awks can read binary, you first need to pipe the classfile through hexdump
    • example (see run.sh): javac Add.java && hexdump -v -e '/1 "%01u "' Add.class | awk -f jvm.awk

what can it do?

  • not a lot (eg. call methods and basic operations, see Add.java)

About

a toy jvm in awk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Awk 94.0%
  • Java 3.8%
  • Shell 2.2%