Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: static versus auto initialization Message-ID: <15547@mimsy.UUCP> Date: 20 Jan 89 04:02:09 GMT References: <8901182125.AA06523@decwrl.dec.com> <7483@chinet.chi.il.us> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 14 [Automatic aggregate initialisation is not allowed in `old C'.] In article <7483@chinet.chi.il.us> john@chinet.chi.il.us (John Mundt) writes: >A static variable will run faster if it is addressed scads of times >since its final address does not have to be computed each time it >is accessed. This is a curious statement. Variables do not run at all. I suspect you mean `code that computes a variable's address will run faster if the variable is static'; that statement is testable, and is false on perhaps as many machines as it is true on others. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris