repositório com o fim de fazer a JVM 8.
Oracle documentation avaible at: Java SE 8
make clean && make
make && ./jvm.out {viewer, interpreter} <PATH> <FILE> [options]* [--args] [arguments]*
mingw32-make.exe clean
mingw32-make.exe
make && .\jvm.exe {viewer, interpreter} <PATH> <FILE> [options]* [--args] [arguments]*
path to the program search for class files
the actual class file to be executed by jvm
list of parameters to be passed to the interpreter, i.e. to the main method
-
-d, -debug: interpreter flag, shows what instruction is being executed and the actual PC
-
-json: viewer flag, generates a json file that represents the structure of .class file passed
-
-v, -verbose: both modes flag, shows what is executing during program
-
-i, -ignore: no use
Make sure you have GDB installed.
Compile the program normally according to your operating system.
gdb --args make && ./jvm.out {viewer, interpreter} <PATH> <FILE> [options]* [--args] [arguments]*
consult the commands: GDB Command Line Arguments
Make sure you have valgrind installed.
Compile the program normally according to your operating system.
make && valgrind -v --leak-check=full --track-origins=yes --show-leak-kinds=all make && ./jvm.out {viewer, interpreter} <PATH> <FILE> [options]* [--args] [arguments]*
Make sure that you have Python and pip installed.
- installing:
pip install cpplint
- running:
cpplint --recursive ./[src|include]
Make sure that you have clang and clang-format installed
- installing:
sudo apt install clang clang-format
- running:
./formatter ./[src|include]
Make sure that you have Doxygen installed.
-
installing:
Linux:
sudo apt install doxygen
Windows: Click here to download -
running:
doxygen .\Doxyfile
Make sure you have Java 8u231 installed.
Follow the steps to install JDK 8
Follow the steps to install JRE 8
-
generating:
Linux:
make tests
Windows:mingw32-make tests
-
running:
cd .\classes\
java <nome da classe>