Memory allocations in linux for processes
Mulyadi Santosa
mulyadi.santosa at gmail.com
Wed Mar 20 15:07:19 EDT 2013
On 3/19/13, Niroj Pokhrel <nirojpokhrel at gmail.com> wrote:
>
> Hi Mulyadi .
> Thank you very much.... But I still have a minor confusion .........
> All I ran was this short program
>
> #include<stdio.h>
> int main()
> {
> while(1)
> {
> }
> return 0;
> }
well, before your program is loaded, certainly one or more memory
region must be allocated in RAM, right? if not, where will it be
stored ?
Like Valdis said, strace utility could help you understanding things
during the binary execution. You'll see lots of mmap, I promise :)
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the Kernelnewbies
mailing list