[Info-vax] Possible C compiler static variable initialization problem.
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Wed Feb 26 12:55:34 EST 2014
On 2014-02-26, Bob Koehler <koehler at eisner.nospam.encompasserve.org> wrote:
> In article <leko68$egf$1 at dont-email.me>, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> writes:
>>
>> On VMS, variables defined in different source files, but with the same name,
>> were traditionally treated as different variables by the linker and space
>> allocated for each variable definition.
>
> I've been working with C on VMS since early VAX C days, and I've
> never seen that. A file level variable (outside of any function)
> is treats as global to the code unless it's specificially declared
> static.
>
My apologies for the wrong information than.
I encountered this back in the 90s with a C compiler and I had thought it
was on VMS. I wonder if it was one of the early Microsoft C MS-DOS/Win 9x
compilers which I worked with in that timeframe as well ?
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
More information about the Info-vax
mailing list