👨🏻💻 Dynamic memory (heap) and memory segments - C Programming Course STEP by STEP (22)
HTML-код
- Опубликовано: 11 сен 2024
- The memory layout in the C programming language can be divided mainly into 4 zones or segments.
The first one is the .text segment, which contains the program instructions. Then we have the segment containing the global and static variables, which in turn is divided into bss and ds register. The next segment is the stack which we have already talked about in other classes of this C course and finally we have the heap segment which is the one destined to the dynamic memory.
The latter is the one we will understand in more detail given the importance of dynamic memory in the C programming language.
Content:
00:03 - How memory is divided in the C language.
01:20 - Segment text in memory
01:40 - Static / global segment in the memory layout
02:02 - What is the stack in memory and stack frames
02:26 - What is block starting symbol
02:53 - What is data segment register
03:08 - Types of memory in C
03:13 - Automatic memory
03:48 - Static memory
04:10 - Dynamic memory
04:20 - Advantages and disadvantages of each memory segment
04:57 - Code execution per memory region
07:26 - Memory stack limitations
09:01 - What is a VLA or variable length array
10:40 - What is heap in the memory layout
11:55 - What is malloc and free for dynamic memory
Watch all the videos of the C course: • Aprende a programar 📙 ...
See the C course repository: github.com/dfb...
Facebook: goo.gl/HDLFyn
Twitter: goo.gl/pcFziM
#LearnProgramming #CProgrammingCourse