Re: Memory regions



new wrote:
Hi Experts,
How can I check the memory regions occupied by the c program in linux
gcc
compiler ?
Any commands?
My intention is to check for the variables defined in the
program,whether it is in text,data,stack or heap regions.
Thanks for the help.

Static variables are in the data segment, automatic variables are or the stack.


Bjarni
--

INFORMATION WANTS TO BE FREE
.



Relevant Pages

  • Re: Memory regions
    ... Any commands? ... My intention is to check for the variables defined in the ... To see sections produce an assembly output for your code (-S gcc ...
    (comp.unix.programmer)
  • Memory regions
    ... Any commands? ... My intention is to check for the variables defined in the ...
    (comp.unix.programmer)
  • Re: Memory regions
    ... Any commands? ... My intention is to check for the variables defined in the ...
    (comp.unix.programmer)
  • Checking the Memory regions
    ... How can I check the memory regions occupied by the c program in gcc ... Any commands? ... My intention is to check for the variables defined in the ...
    (comp.lang.c)
  • Re: Checking the Memory regions
    ... How can I check the memory regions occupied by the c program in gcc ... Any commands? ... My intention is to check for the variables defined in the ...
    (comp.lang.c)