Re: static allocation question...

From: Irrwahn Grausewitz (irrwahn33_at_freenet.de)
Date: 10/10/03


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.


Relevant Pages