Help-debug

From perl6.cz

Příklady použití parametru -d u virtuálního stroje Parrot.

cat lgp01.pasm*

<syntax lang=pasm>

.pcc_sub _sub1:
   set I1, 10
   print "in sub1\n"
   add I0, 5
   add I1, 10
returncc

</syntax>

parrot -d 1000 lgp01.pasm

code_size(ops) 12  oldsize 0
0 set_i_ic 1 10 set I1, 10
3 print_sc 1    print "in sub1\n"
5 add_i_ic 0 5  add I0, 5
8 add_i_ic 1 10 add I1, 10
11 returncc     returncc
in sub1

parrot -d 2000 lgp01.pasm

 const 5 color 5 use_count 1
 const "in sub1\n"       color 1  use_count 1
 const 10        color 10 use_count 2
 add_const_pmc_sub '_sub1' flags 0 color 3 (Sub) lex_info no :outer(*none*)
 in sub1

See also

 parrot --help
 parrot --help-debug
Personal tools
Language