bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs: hppa64-hp-hpux11.00: ld install failure


From: Nick Clifton
Subject: Re: cvs: hppa64-hp-hpux11.00: ld install failure
Date: 27 Aug 2001 09:46:28 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Hi Markus,

> What if You would choose to have a clean code
> where macros are upper case and local variables are not?

That is generally the case.

> Please tell me why You did not use the static keyword
> here. Is there a difference between C and C++ in this case?

In theory there should be no difference whatsoever.  Since the
variable is constant any decent compiler is going to eliminate it, and
it will not occupy space in the data area (if static) or on the stack
(if not static),  It would appear however that for your compiling
environment at least, that it does make a difference.

> This code snippet works fine for me:
> (well, at least it compiles)

OK - I will add the static declaration.

Cheers
        Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]