Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: variable number of strings passed to function - how? Message-ID: <8752@smoke.BRL.MIL> Date: 26 Oct 88 09:08:21 GMT Article-I.D.: smoke.8752 References: <434@tutor.UUCP> <3533@ihuxz.ATT.COM> <1988Oct24.180933.17505@utzoo.uucp> <6199@june.cs.washington.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <6199@june.cs.washington.edu> pardo@uw-june.UUCP (David Keppel) writes: >This probably seems like a silly question, but are there any compilers >that pass arguments globally? In general, C semantics require that a function invocation's value parameters be unique to the activation record. They cannot be shared. Your particular example would allow that optimization, IF all users of the function were known to the compiler at the point that it was deciding what form of function linkage to use for that function. However, it is doubtful that the extra analysis and irregular linkage mechanism would be worthwhile for such an unlikely case.