Re: Off Topic: Stack vs. Heap
From: Kevin Grigorenko (kzg110_at_psu.edu)
Date: 10/09/03
- Next message: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Previous message: Jonathan Mcdougall: "Re: vector<string>.clear() now working -- please help"
- In reply to: E. Robert Tisdale: "Off Topic: Stack vs. Heap"
- Next in thread: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Reply: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Reply: Mike Wahler: "Re: [FAQs, links] Off Topic: Stack vs. Heap"
- Reply: David B. Held: "Re: Off Topic: Stack vs. Heap"
- Reply: Gavin Deane: "Re: Off Topic: Stack vs. Heap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 9 Oct 2003 01:08:20 -0400
"E. Robert Tisdale" <E.Robert.Tisdale@jpl.nasa.gov> wrote in message
news:3F84DA97.5050403@jpl.nasa.gov...
> Kevin Grigorenko wrote:
>
> >
> >
> > I couldn't find an obvious answer to this in the FAQ. My basic
question,
> > is: Is there any difference in allocating on the heap versus the stack?
> > If heap or stack implementation is not part of the standard, then just
> > disregard this question. Here's some questions I'm confused about, and
if
> > you can add anything else, please do so!
> >
> > Is the stack limited for each program?
> >
> > On the other hand, is the heap basically limitless (except of course
limited
> > to the size of memory or page files)?
> >
> > If I've got something on the heap, as I understand it, another program
can
> > update any of my allocated storage without me knowing? Can this happen
on
> > the stack?
> >
> > Is there any performance difference in using variables on the stack
versus
> > on the heap?
> >
> > Are global and static variables on the stack?
> >
> > The reason I ask is I'm starting to get into C#, and it makes a big deal
> > about allocating a lot of stuff on a garbage collected heap. I wouldn't
> > want to start asking off-topic questions, so I'll just ask this: would a
> > concept like this follow from the fact that heap storage is better to
use
> > for some reason rather than storage on the stack?
>
> It depends upon your compiler.
> Please tell us which compiler you are using
> so that we can redirect to to the appropriate newsgroup.
>
>
All of those questions are non-standard? Ok, I have no doubts, you guys are
the experts. Let's say the compiler I'm using is VC++6. Also, I was
looking for a C# newsgroup, so if you could also direct me to where I can
post questions regarding that, that would be great. I couldn't find
anything to the effect of comp.lang.csharp.
Is the concept of stack and heap completely independent of the standard?
Thanks again!
Kevin Grigorenko
- Next message: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Previous message: Jonathan Mcdougall: "Re: vector<string>.clear() now working -- please help"
- In reply to: E. Robert Tisdale: "Off Topic: Stack vs. Heap"
- Next in thread: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Reply: Josephine Schafer: "Re: Off Topic: Stack vs. Heap"
- Reply: Mike Wahler: "Re: [FAQs, links] Off Topic: Stack vs. Heap"
- Reply: David B. Held: "Re: Off Topic: Stack vs. Heap"
- Reply: Gavin Deane: "Re: Off Topic: Stack vs. Heap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|