C0 C0 FF EE # magic number 00 09 # version 4, arch = 1 (64 bits) 00 00 # int pool count # int pool 00 0C # string pool total size # string pool 70 6F 74 61 74 6F 20 63 68 69 70 00 # "potato chip" 00 01 # function count # function_pool #
00 00 # number of arguments = 0 00 01 # number of local variables = 1 00 38 # code length = 56 bytes BB 18 # new 24 # alloc(struct test) 36 00 # vstore 0 # t = alloc(struct test); 15 00 # vload 0 # t 62 00 # aaddf 0 # &t->a 10 01 # bipush 1 # 1 4E # imstore # t->a = 1; 15 00 # vload 0 # t 62 08 # aaddf 8 # &t->b 14 00 00 # aldc 0 # s[0] = "potato chip" 4F # amstore # t->b = "potato chip"; 15 00 # vload 0 # t 62 10 # aaddf 16 # &t->c 10 17 # bipush 23 # 23 4E # imstore # t->c = 23; 15 00 # vload 0 # t 62 08 # aaddf 8 # &t->b 2F # amload # t->b B7 00 00 # invokenative 0 # print(t->b) 57 # pop # (ignore result) 15 00 # vload 0 # t 62 00 # aaddf 0 # &t->a 2E # imload # t->a B7 00 01 # invokenative 1 # printint(t->a) 57 # pop # (ignore result) 15 00 # vload 0 # t 62 10 # aaddf 16 # &t->c 2E # imload # t->c B7 00 01 # invokenative 1 # printint(t->c) 57 # pop # (ignore result) 10 00 # bipush 0 # 0 B0 # return # 00 02 # native count # native pool 00 01 00 06 # print 00 01 00 09 # printint