Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucbvax.ARPA Path: utzoo!utcs!lsuc!pesnta!amd!dual!ucbvax!info-vax From: info-vax@ucbvax.ARPA Newsgroups: fa.info-vax Subject: Re: DEC C compiler Message-ID: <4942@ucbvax.ARPA> Date: Tue, 19-Feb-85 17:52:30 EST Article-I.D.: ucbvax.4942 Posted: Tue Feb 19 17:52:30 1985 Date-Received: Wed, 20-Feb-85 04:18:05 EST Sender: daemon@ucbvax.ARPA Organization: University of California at Berkeley Lines: 39 From: sasaki@harvard.ARPA (Marty Sasaki) I'm using the 1.5 version of the C compiler. Maybe your problem is because it is an alpha test version of the compiler? For the main main() { foo("This %s\n","is it"); } the compiler generates code something like: moval $C_STRING_CONSTANT,ap pushal 9(ap) pushal (ap) calls #2,foo movl #1,0 ret For foo: foo(arg) int arg; { int *p; p = &arg; printf(*p,*(p+1)); } and the compiler genrates something like movab 4(ap),r1 addl3 #4,r1,r0 pushl (r0) pushl (r1) calls #2,printf ret This seems completely correct and does produce the desired results when compiled and run, i.e. "This is it\n" gets printed. Marty Sasaki