Re: Off Topic: Stack vs. Heap

From: Gavin Deane (deane_gavin_at_hotmail.com)
Date: 10/09/03


Date: 9 Oct 2003 05:30:08 -0700


"Kevin Grigorenko" <kzg110@psu.edu> wrote in message news:<bm2qgn$1n38$1@f04n12.cac.psu.edu>...
> Is the concept of stack and heap completely independent of the standard?

The standard defines static, dynamic and automatic storage duration,
which determine the life time of objects in your program. How those
storage durations are implemented (stack, heap, some other system),
whether there is a maximum amount of memory available, and whether
other programs can interfere with memory you have used are all details
specific to your implementation and operating system.

GJD



Relevant Pages

  • Re: difference between stack & heap (general, for a newbie)
    ... >> The stack is used to allocate temporary objects while the heap is used ... > To the best of my knowledge, the standard does not require any such ...
    (comp.lang.cpp)
  • Re: How to calculate the stack and heap size
    ... How can we calculate the stack and heap size requried by a C program. ... There is no standard way to determine how much heap us used because ... It depends on how good your implementation is at reusing freed memory ...
    (comp.lang.c)
  • Re: about memory model
    ... In most C *implementations* you have a stack and a heap. ... language itself (i.e., the standard) doesn't refer to either. ...
    (comp.lang.c)
  • Re: Some Questions Asked in Interview
    ... The standard C language neither recognizes the term ... |> 'heap', nor the term 'stack', and thus the question doesn't actually ... |> 'stack' are eligible to store static variables, ...
    (comp.lang.c)
  • Re: Is C99 the final C? (some suggestions)
    ... > Dijkstra's weighted shortest path algorithms were nice for client-server based ... but the future is peer 2 peer. ... >>The C standard specifies what is UB and what's not. ... I can do no such thing with stack ...
    (comp.lang.c)