Verbose Mode
Run verbose
fn factorial(n: Int) -> Int
{
if (n <= 1) {
return 1;
} else {
return n * factorial(n - 1);
}
}
fn main() -> Int
{
return factorial(5);
}The debug mode command:
> ./glados run --verbose out.gomcOutput:
Understanding the output
Procedures or functions
Instructions
Push
JumpIfFalse
Jump
PushArg
PushEnv
AddEnv
Call
BuildList
AccessList
Return
Last updated