CSIS 3700 - Memory Lab Visualizer

CSIS 3700 Memory Lab Visualizer

This interactive memory visualizer helps you understand C++ memory management concepts, including stack, heap, pointers, and dynamic memory allocation.

Features

  • Step-by-step execution: Execute code line by line and observe memory state changes
  • Visual representation: Intuitive display of stack and heap memory allocations
  • Multiple scenarios: 8 different scenarios covering from basic variables to complex pointer operations
  • Interactive controls: Support for forward, backward, and reset operations

How to Use

  1. Select different program scenarios (Q1-Q8)
  2. Use the “Step” button to execute code line by line
  3. Observe memory changes in stack and heap
  4. Use keyboard shortcuts: ←/→ to control steps, 1-8 to switch programs

Program Scenarios

  • Q1: Local variables (stack)
  • Q2: new/delete (heap integer)
  • Q3: new[] array
  • Q4: new Point object
  • Q5A: Ten independent point objects
  • Q5B: Ten pointers pointing to the same object
  • Q6: Delete and dangling pointers (aliases)
  • Q7: Pointer parameters (pass-by-value)
  • Q8: int*& allocation (change caller pointer)

Loading Memory Lab Visualizer...
Please wait while the interactive components load.