crackercat / jvm-1 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from phillbush/jvm
simple java virtual machine
This project forked from phillbush/jvm
simple java virtual machine
jvm This is the implementation of a simple Java Virtual Machine. This is the final project of the first semester of 2021 of the System Software course of the Computer Science department of the University of Brasilia. The following tools are implemented: • javap(1): Disassembles one or more class files. • java(1): Launches a Java application. § Files • util.[ch]: miscellaneous routines • class.[ch]: routines and definitions related to class structure • native.[ch]: routines and definitions related to native code • memory.[ch]: routines and definitions related to JRE memory • file.[ch]: routines to read and free .class files • javap.c: .class file disassembler • java.c: .class file interpreter • tests/*: collection of simple .java files for testing the jvm § Running To build the jvm, run the following command. This will create the executable file ./java for the jvm. make java To build the disassembler, run the following command. This will create the executable file ./javap for the disassembler. make javap To test the disassembler, run make on one of the test files with its suffix replaced with "p". For example, to test the disassembler on the test class tests/HelloWorld.class, run the following command. make tests/HelloWorld.p To test the disassembler on all test classes, run the following command. make testp To test the jvm, run make on one of the test files with its suffix replaced with "j". For example, to test the jvm on the test class tests/HelloWorld.class, run the following command. make tests/HelloWorld.j To test the jvm on all test classes, run the following command. make testj § See Also The Java® Virtual Machine Specification: Java SE 8Edition, by Tim Lindholm, Frank Yellin, Gilad Bracha, Alex Buckley, Addison-Wesley, 2014. ISBN: 978-0-13-390590-8. https://docs.oracle.com/javase/specs/jvms/se8/html/ § License This software is in the public domain and is provided AS IS, with NO WARRANTY.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.