variable number of strings passed to function - how?

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Oct 26 19:08:21 AEST 1988


In article <6199 at june.cs.washington.edu> pardo at 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.



More information about the Comp.lang.c mailing list