Re: Memory allocations in linux for processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/19/13, Niroj Pokhrel <nirojpokhrel@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux