Stack memory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • c.lang.myself@gmail.com

    Stack memory

    I have doubts about validity of question below...but still due to my
    curiosity i am asking.........
    -----
    We have 3 main portion in our memory analysis
    *code segment
    *heap
    *stack

    We can easily know memory available for heap by regular call for
    malloc....which in my environment comes as 61KB

    Now my question is can we also know maximum amount of stack memory
    available in our environment.... .
    or there is some sharing of memory b/w heap and stack...?
  • Ian Collins

    #2
    Re: Stack memory

    c.lang.myself@g mail.com wrote:
    I have doubts about validity of question below...but still due to my
    curiosity i am asking.........
    -----
    We have 3 main portion in our memory analysis
    *code segment
    *heap
    *stack
    >
    We can easily know memory available for heap by regular call for
    malloc....which in my environment comes as 61KB
    >
    That small?
    Now my question is can we also know maximum amount of stack memory
    available in our environment.... .
    or there is some sharing of memory b/w heap and stack...?
    These questions are very system specific, how memory is partitioned and
    size limits will be specified by your implementation' s documentation.

    --
    Ian Collins

    Comment

    • c.lang.myself@gmail.com

      #3
      Re: Stack memory

      On Nov 16, 10:24 am, Ian Collins <ian-n...@hotmail.co mwrote:
      c.lang.mys...@g mail.com wrote:
      I have doubts about validity of question below...but still due to my
      curiosity i am asking.........
      -----
      We have 3 main portion in our memory analysis
      *code segment
      *heap
      *stack
      >
      We can easily know memory available for heap by regular call for
      malloc....which in my environment comes as 61KB
      >
      That small?
      I am using borland Turbo C environment..
      >
      Now my question is can we also know maximum amount of stack memory
      available in our environment.... .
      or there is some sharing of memory b/w heap and stack...?
      >
      These questions are very system specific, how memory is partitioned and
      size limits will be specified by your implementation' s documentation.
      >
      --
      Ian Collins
      Can we know what is maximum amount of stack available in our
      system.....

      Comment

      • Barry Schwarz

        #4
        Re: Stack memory

        On Sun, 16 Nov 2008 04:01:24 -0800 (PST), "c.lang.myself@ gmail.com"
        <c.lang.myself@ gmail.comwrote:
        >On Nov 16, 10:24 am, Ian Collins <ian-n...@hotmail.co mwrote:
        >c.lang.mys...@ gmail.com wrote:
        I have doubts about validity of question below...but still due to my
        curiosity i am asking.........
        -----
        We have 3 main portion in our memory analysis
        *code segment
        *heap
        *stack
        >>
        We can easily know memory available for heap by regular call for
        malloc....which in my environment comes as 61KB
        >>
        >That small?
        >I am using borland Turbo C environment..
        >>
        Now my question is can we also know maximum amount of stack memory
        available in our environment.... .
        or there is some sharing of memory b/w heap and stack...?
        >>
        >These questions are very system specific, how memory is partitioned and
        >size limits will be specified by your implementation' s documentation.
        >>
        >--
        >Ian Collins
        >
        >Can we know what is maximum amount of stack available in our
        >system.....
        There is no portable way. If you ask in a newsgroup that discusses
        your system, you may find a system specific method.

        --
        Remove del for email

        Comment

        Working...