c++ -Wall -std=c++98 -g vm.o -o vm
./vm HelloWorld
magic: cafebabe
minor_version: 0
major_version: 51
const_pool_count: 27

info[1]->info == "0"
info[2]->tag == "8"
info[3]->info == "1"
info[4]->tag == "8"
info[5]->tag == "8"
info[6]->tag == "7"
info[7]->tag == "7"
info[8]->info == "<init>"
info[9]->info == "()V"
info[10]->info == "Code"
info[11]->info == "LineNumberTable"
info[12]->info == "main"
info[13]->info == "([Ljava/lang/String;)V"
info[14]->info == "SourceFile"
info[15]->info == "HelloWorld.java"
info[16]->tag == "12"
info[17]->info == "1-Hello, World!"
info[18]->tag == "7"
info[19]->tag == "12"
info[20]->info == "2-Hello, World!"
info[21]->info == "3-Hello, World!"
info[22]->info == "HelloWorld"
info[23]->info == "java/lang/Object"
info[24]->info == "IO"
info[25]->info == "println"
info[26]->info == "(Ljava/lang/String;)V"
access_flags: 33
this_class: 6
super_class: 7
interfaces_count: 0
fields_count: 0
done read fields...
methods_count: 2
access_flags: 1
name_index: 8
descriptor_index: 9
attributes_count: 1
attribute_name_index: 10
attribute_length: 29
max_stack: 1
max_locals: 1
code_length: 5
code[0] == 42
code[1] == 183
code[2] == 0
code[3] == 1
code[4] == 177
exception_table_length: 0
attributes_count: 1
attribute_name_index: 11
attribute_length: 6
read code attributes...
read method attribute...
read method info...
minfo->get_name_index() == 8
constant_pool[8] == "<init>"
access_flags: 9
name_index: 12
descriptor_index: 13
attributes_count: 1
attribute_name_index: 10
attribute_length: 52
max_stack: 1
max_locals: 1
code_length: 16
code[0] == 18
code[1] == 2
code[2] == 184
code[5] == 18
code[6] == 4
code[7] == 184
code[10] == 18
code[11] == 5
code[12] == 184
code[15] == 177
exception_table_length: 0
attributes_count: 1
attribute_name_index: 11
attribute_length: 18
read code attributes...
read method attribute...
read method info...
minfo->get_name_index() == 12
constant_pool[12] == "main"
Class file input successfull...
main
	ldc 2
	invokestatic 3
	ldc 4
	invokestatic 3
	ldc 5
	invokestatic 3
	return 
magic: cafebabe
minor_version: 0
major_version: 51
const_pool_count: 23

info[1]->info == "0"
info[2]->tag == "8"
info[3]->info == "1"
info[4]->tag == "7"
info[5]->tag == "7"
info[6]->info == "<init>"
info[7]->info == "()V"
info[8]->info == "Code"
info[9]->info == "LineNumberTable"
info[10]->info == "println2"
info[11]->info == "(Ljava/lang/String;)V"
info[12]->info == "println"
info[13]->info == "<clinit>"
info[14]->info == "SourceFile"
info[15]->info == "IO.java"
info[16]->tag == "12"
info[17]->info == "IO"
info[18]->tag == "7"
info[19]->tag == "12"
info[20]->info == "java/lang/Object"
info[21]->info == "java/lang/System"
info[22]->info == "loadLibrary"
access_flags: 33
this_class: 4
super_class: 5
interfaces_count: 0
fields_count: 0
done read fields...
methods_count: 4
access_flags: 1
name_index: 6
descriptor_index: 7
attributes_count: 1
attribute_name_index: 8
attribute_length: 29
max_stack: 1
max_locals: 1
code_length: 5
code[0] == 42
code[1] == 183
code[2] == 0
code[3] == 1
code[4] == 177
exception_table_length: 0
attributes_count: 1
attribute_name_index: 9
attribute_length: 6
read code attributes...
read method attribute...
read method info...
minfo->get_name_index() == 6
constant_pool[6] == "<init>"
access_flags: 9
name_index: 10
descriptor_index: 11
attributes_count: 1
attribute_name_index: 8
attribute_length: 25
max_stack: 0
max_locals: 1
code_length: 1
code[0] == 177
exception_table_length: 0
attributes_count: 1
attribute_name_index: 9
attribute_length: 6
read code attributes...
read method attribute...
read method info...
minfo->get_name_index() == 10
constant_pool[10] == "println2"
access_flags: 265
name_index: 12
descriptor_index: 11
attributes_count: 0
read method info...
minfo->get_name_index() == 12
constant_pool[12] == "println"
access_flags: 8
name_index: 13
descriptor_index: 7
attributes_count: 1
attribute_name_index: 8
attribute_length: 34
max_stack: 1
max_locals: 0
code_length: 6
code[0] == 18
code[1] == 2
code[2] == 184
code[5] == 177
exception_table_length: 0
attributes_count: 1
attribute_name_index: 9
attribute_length: 10
read code attributes...
read method attribute...
read method info...
minfo->get_name_index() == 13
constant_pool[13] == "<clinit>"
Class file input successfull...
1-Hello, World!
2-Hello, World!
3-Hello, World!
RESULT = 0
