Higher Subleq | Error | Output | Subleq | ITR |
int f()
{
return 50;
}
void main()
{
__out f();
}
|
|
2
|
top:top top sqmain
_f:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
ax; c1 ax
Z Z end_f
end_f:
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_main:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _f; . ?;
t1; ax t1
inc sp
t1 (-1)
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
sqmain:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _main; . ?; inc sp
Z Z (-1)
. c1:50
. t1:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
|
Root (mg_9_10.hsq:10)
Function:0 [f] (mg_9_10.hsq:1)
Keyword [int] (mg_9_10.hsq:1)
Param-type-list (mg_9_10.hsq:1)
Block (mg_9_10.hsq:2)
Keyword-statement [return] (mg_9_10.hsq:3)
Const [50] (mg_9_10.hsq:3)
Function:0 [main] (mg_9_10.hsq:6)
Keyword [void] (mg_9_10.hsq:6)
Param-type-list (mg_9_10.hsq:6)
Block (mg_9_10.hsq:7)
OperatorIO [__out] (mg_9_10.hsq:8)
Postfix [(] (mg_9_10.hsq:8)
Label [f] (mg_9_10.hsq:8) f:1
|