![]() ![]() The initialized data segmentconsists of all the global and static variables that are initialized when a file gets compiled. The amount of memory that get’s assigned to an application depends on the computer’s architecture and will vary across most devices, but the variable that remains constant is the five parts of an application’s memory which are the heap, stack, initialized data segment, uninitialized data segment, and the text segment. The memory that is assigned to a program or application in a computer can be divided into five parts. When we write applications, files, or any logic that is typed in an editor and executed on the computer, the computer has to allocate memory for the program to run. ![]() How does understanding the two make you a better software engineer? What are the five segments of memory? ![]() What better way to build a solid foundation of how memory gets allocated then to write a technical post on the stack versus the heap? This article explains in depth: I’m four months into the curriculum at Holberton School and we’ve solved multiple problems using the malloc, realloc, calloc and free functions in the C programming language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |