All Projects → rethab → Awk Jvm

rethab / Awk Jvm

Licence: mit
a toy jvm in awk

Programming Languages

awk
318 projects

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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].