Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: C help please - C newbie



Hans-Bernhard Broeker <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

>> > static variables have file level scope and typically presist
>> > throughout operation.
> 
>> Why typically? I believe the *must* persist for the duration of the
>> program. 
> 
> Not if the compiler can determine that they're no longer needed after
> some point in program flow.  They must behave *as if* they persisted
> for the duration of the program --- but if the program doesn't look,
> the compiler is allowed to re-use the space otherwise.

I'd like to know if you have an example of such a condition as I'm having
a hard time seeing how a compiler could know that it will swap out a
function for use by another. Maybe I'm too used to Harvard architectures. 

-- 
- Mark ->
--



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.