A typical memory representation of C program consists of following sections. 1. Text segment 1. Text Segment: A text segment , also known as a code segment or simply as text, is one of the sections of a program in an object file or in memory, which contains executable instructions. As a memory region, a text segment may be placed below the heap or stack in order to prevent heaps and stack overflows from overwriting it. Usually, the text segment is sharable so that only a single copy needs to be in memory for frequently executed programs, such as text editors, the C compiler, the shells,
Read full article from Memory Layout of C Programs | GeeksforGeeks
No comments:
Post a Comment