What This Does
Paste any Rust code and see exactly where each piece of data lives in memory: stack, heap, .rodata, .data, .bss, or .text.
Keyboard Shortcuts
| Ctrl+Enter | Analyze code |
| Esc | Close modals |
| ← → | Step through timeline |
| Space | Play/pause timeline |
How It Works
The analyzer tokenizes your Rust code and applies heuristic memory classification rules. The Assembly tab fetches real compiler output from Compiler Explorer — this also validates your code against rustc.
Memory Segments
- Stack — local variables, function params, references
- Heap — Box, Vec, String, HashMap, Rc, Arc
- .rodata — string literals, const, immutable statics
- .data — mutable statics
- .bss — zero-initialized statics
- .text — compiled function code
Pointers & Registers
Glowing arrows show ownership relationships. Entries with a ptr → badge hold pointers to other memory. RBP marks the stack frame base, RSP moves down as variables are pushed — step through the timeline to see it in action.