Learn about the different memory sections of programs, in particular about the stack, the heap, and the read-only data section. Understand when variables are put on the stack, how to put variables on the heap, and what consequences there are depending on the chosen memory.
00:00 Introduction
02:08 Stack and Heap
07:01 Example 1
08:43 Function Calls
08:52 Example 2
12:02 Destruction Time
12:22 Example 3
14:16 Example 4
17:08 Example 5
19:09 Memory Allocation Responsibility
19:28 Example 6
20:31 Example 7
23:05 Read-Only Data and C-Style Strings
This lecture has been recorded as part of the 186.832 Introduction to Computer Graphics course at TU Wien, winter term 2021.
Brought to you by Johannes Unterguggenberger, Research Unit of Computer Graphics, Rendering and Modeling Group, Institute of Visual Computing & Human-Centered Technology, TU Wien.
Slides can be downloaded here: https://www.cg.tuwien.ac.at/courses/E...