paint-brush
How C program stored in RAM memoryby@IndianWestCoast
473 reads
473 reads

How C program stored in RAM memory

by Vishal Chovatiya15mNovember 21st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Process address space or memory layout of C program is organized in the following fashion: Text segment contains executable instructions of your C program, its also called code segment also. Text segment is sharable so that only a single copy needs to be in memory for different executing programs, such as text editors, shells, and so on. The text segment is read-only, to prevent a program from accidentally modifying its instructions. The uninitialized data segment also contains all global and static variables that do not have explicit initialization in source code. The stack segment is an area where local variables are stored. By saying local variable means that all those variables declared in every function including.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How C program stored in RAM memory
Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya

Vishal Chovatiya

@IndianWestCoast

Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

Learn More
LEARN MORE ABOUT @INDIANWESTCOAST'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya@IndianWestCoast
Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Learnrepo