---
# Stack layout
---
pc: 0x00000025
sp: 0x00000064 frame-base: 0x0000006c
stack-root: 0x00000080 ctrl-sp: 0x00000098
mem[0x64..0x67]: 0x0000000e #2 bar operand 1 [sp]
mem[0x68..0x6b]: 0x0000000e #2 bar operand 0
mem[0x6c..0x6f]: #2 bar locals
mem[0x6c..0x6f]: 0x00000001 #2 bar local 0 [frameBase]
mem[0x70..0x7b]: #1 foo locals
mem[0x70..0x73]: 0x00000001 #1 foo local 2
mem[0x74..0x77]: 0x0000000c #1 foo local 1
mem[0x78..0x7b]: 0x0000000b #1 foo local 0
mem[0x7c..0x7f]: 0x0000000a #0 _start operand 0
mem[0x80..0x87]: CallScope #1 foo
{ csCallerFrameBase = 0x7c
, csCallerLocalCount = 0
, csReturnPc = 0x44
, csResultCount = 1 }
mem[0x88..0x8f]: BlockScope { csEnd = 0x16 } #1 foo
mem[0x90..0x97]: CallScope #2 bar
{ csCallerFrameBase = 0x78
, csCallerLocalCount = 3
, csReturnPc = 0x15
, csResultCount = 1 }
mem[0x98..0x9f] (8 B): 00 00 00 00 00 00 00 00 [ctrlSp]
---
# Overview
## Execution statistics
sim:instruction-count: 22
mem:accesses-total: 57 (reads 35 / writes 22)
layout:sections-size: 69 (text 69 / data 0)
mem:instr-ranges: 0x00..0x44 (69 B)
mem:data-ranges: 0x64..0x97 (52 B)
mem:io-ranges: -
## Memory layout
```
Kind Range Bytes Accessed Coverage
text 0x000..0x044 69 0x000..0x044 100%
x 0x045..0x063 31 - 0%
x 0x064..0x097 52 0x064..0x097 100%
x 0x098..0x09f 8 - 0%
```
## Memory accesses per instruction
```
Address Exec Read Write Instruction
0x00 1 1 0 LocalsReserve 1 @foo
0x02 1 1 1 LocalGet 0
0x04 1 2 1 LocalGet 1
0x06 1 0 1 I32LeS
0x07 1 1 2 LocalTee 2
0x09 1 5 2 Block
0x0a 1 1 0 If
0x0b 1 1 1 LocalGet 2
0x0d 1 2 1 I32Const 24
0x12 1 1 2 Call {callParamCount = 1, callResultCount = 1}
0x18 1 2 1 LocalGet 0 @bar
0x1a 1 2 1 I32Const 13
0x1f 1 1 1 I32Add
0x20 1 2 1 I32Const 14
0x25 1 1 0 Halt
0x27 1 2 1 I32Const 128 @_start
0x2c 1 1 0 SpInit
0x2d 1 2 1 I32Const 10
0x32 1 2 1 I32Const 11
0x37 1 2 1 I32Const 12
0x3c 1 2 1 I32Const 0
0x41 1 1 2 Call {callParamCount = 2, callResultCount = 1}
```
/* comment */