Re: static allocation question...
From: Irrwahn Grausewitz (irrwahn33_at_freenet.de)
Date: 10/10/03
- Next message: Irrwahn Grausewitz: "Re: How to find out the size of an array?"
- Previous message: Ivan Vecerina: "Re: [OT] Re: 2 stupid array questions!!"
- In reply to: cody: "Re: static allocation question..."
- Next in thread: cody: "Re: static allocation question..."
- Reply: cody: "Re: static allocation question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Oct 2003 23:21:18 +0200
"cody" <dont.spam.me.deutronium@gmx.de> wrote:
<SNIP>
>Locals are pushed on the stack when the function where they're declared gets
>invoked
>and are destroyed when the function returns.
There is no requirement imposed by the standard for an implementation to
provide a stack.
>
>void foo
>{
>{ int a; }
>{ int b; }
>}
>
>IMHO the compiler might choose here wheather to assign a and b the same
>memory location or not since you cannot use a or b together. thats similar
>to declaring a union.
Ahrrchrrchrrrarrrrgh-gh... WHAT? Exchanging eyeballs with tomatoes is
similar to wearing a pair of glasses?
I have to <SNIP> now...
Irrwahn
-- If you don't care where you are, then you ain't lost.
- Next message: Irrwahn Grausewitz: "Re: How to find out the size of an array?"
- Previous message: Ivan Vecerina: "Re: [OT] Re: 2 stupid array questions!!"
- In reply to: cody: "Re: static allocation question..."
- Next in thread: cody: "Re: static allocation question..."
- Reply: cody: "Re: static allocation question..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|