Need help with awk-jvm?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rethab
163 Stars 5 Forks MIT License 14 Commits 1 Opened issues

Description

a toy jvm in awk

Services available

!
?

Need anything else?

Contributors list

# 105,168
hugo
jvm
coreuti...
busybox
12 commits

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)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.