Memory Layout of C Programs

from apue 7.6. Memory Layout of a C Program

A typical memory representation of C program consists of following sections.

1. Text segment
2. Initialized data segment
    2.1 initialized read-only area
    2.2 initialized read-write area
3. Uninitialized data segment
4. Heap
5. Stack

Read Memory Layout of C Programs for more details. It's compiled from apue 7.6 with more details and examples.

Other references:

<<Advanced Programming in the UNIX Environment>> 7.6. Memory Layout of a C Program

Memory layout of C process (pdf), download

Data segment

[0x03]. Notes on Assembly - Memory from a process' point of view

Structure of a C-Program in Memory | How Heap,Stack,Data and Code segments are stored in memory?

相关文章:

  • 2022-02-24
  • 2021-11-30
  • 2021-12-15
  • 2021-10-28
  • 2021-08-01
  • 2021-10-20
  • 2021-10-06
  • 2021-10-28
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2022-02-17
  • 2022-02-20
相关资源
相似解决方案