Static Analysis

    How does it work?

  • Tries to makes sense of source code
  • Recognises anti-paterns

Dynamic Analysis

How does it work?

Monitors execution during runtime and yells at you when it decects errors

Stack and Heap memory

Heap memory

  • Slow
  • Unlimited
  • Unmanged
  • Can leak
  • Can fragment
            heap

Stack memory

  • Crazy fast
  • Limited(8MB on Linux)
  • Automatically managed




      call stack

Valgrind

(rhymes with "tinned")