Giter Club home page Giter Club logo

jvm's Introduction

Java Virtual Machine

A project made for the course "Basic Software" of University of Brasilia.
This software can read and print the contents or execute compiled Java programs.

Compiling

To compile, use the provided Makefile by running the following command:

make

This will generate the binary "jvm" in the root folder.
It is also possible to compile a debug version, by using the following command:

make debug

The debug version prints detailed information of the code being executed, files being loaded and other general info.
The generated binary for the debug version is named "jvmdebug".

Documentation

Most of the source code includes Doxygen documentation.
The auto generated doc files are located in the doxygen folder.
The documentation can be viewed in this link: https://bosorioo.github.io/JVM/

Execution

To print the contents of a .class file, use the following command:

./jvm my_compiled_java.class -c

Examples of the generated output of .class content dumping by this software can be found in the examples folder.
Naming convention of that folder is as follow:

  • <ProgramName>.java: Java source code sample
  • <ProgramName>.class: Compiled Java binary
  • <ProgramName>.javap.output.txt: Dump of compiled Java program using javap
  • <ProgramName>.output.txt: Dump of compiled Java program using this software

To execute a .class file, use the following command:

./jvm my_compiled_java.class -e

The same applies with the debug version "jvmdebug".

jvm's People

Contributors

bosorioo avatar letiiribeiro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.