Antti-Juhani Kaijanaho wrote:
> On 20050729T163333+0200, Olaf van der Spek wrote:
> > On 7/29/05, Goswin von Brederlow <[EMAIL PROTECTED]> wrote:
> > > Florian Weimer <[EMAIL PROTECTED]> writes:
> > > Doesn't that still make N a real variable in memory and does not get
> > > optimized away like enums?
> > 
> > I think it's (only) required to have an address.
> > I don't see why the compiler can't optimize it away (if it's const).
> 
> Only if the compiler knows all uses of that constant.

The declared use is enough.

> With dynamic linking, you can't know that very easily.

The compiler knows nothing about dynamic linking, since this is outside
the compilation unit.


Thiemo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to