Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rethab/awk-jvm
a toy jvm in awk
https://github.com/rethab/awk-jvm
hacktoberfest
Last synced: about 2 months ago
JSON representation
a toy jvm in awk
- Host: GitHub
- URL: https://github.com/rethab/awk-jvm
- Owner: rethab
- License: mit
- Created: 2020-06-10T14:27:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T07:45:37.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T19:57:33.745Z (3 months ago)
- Topics: hacktoberfest
- Language: Awk
- Homepage:
- Size: 14.6 KB
- Stars: 165
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)