Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: variable number of strings passed to function - how? Message-ID: <14104@mimsy.UUCP> Date: 21 Oct 88 21:44:56 GMT References: <434@tutor.UUCP> <3533@ihuxz.ATT.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 15 In article <3533@ihuxz.ATT.COM> burris@ihuxz.ATT.COM (Burris) writes: >In the C language arguments are placed on the stack in reverse order .... In the C language there may or may not *be* a stack. Pyramid's compiler places the first 12 (or so; it was 12 when we had one) `simple' arguments in registers. The machine can take the address of registers, so the first 12 arguments are in fact contiguous at increasing addresses. The 13th and succeeding arguments, however, are at some other location entirely (on the data stack---the registers are stored on the control stack, when the current window overflows). This is why you must use (or ). -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris