Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!allegra!kak From: kak@allegra.UUCP Newsgroups: comp.arch Subject: varargs and register windows Message-ID: <6575@allegra.UUCP> Date: Mon, 6-Apr-87 10:22:02 EST Article-I.D.: allegra.6575 Posted: Mon Apr 6 10:22:02 1987 Date-Received: Wed, 8-Apr-87 05:16:11 EST Distribution: world Organization: AT&T Bell Laboratories, Murray Hill Lines: 15 How do machines with register windows, e.g. RISC I/II, handle variable length argument lists? RISC I has 6 registers for incoming arguments (R26 - R31). What happens if the caller has more than 6 arguments? Also, in C, its common practice to treat the passed arguments as memory, i.e. pointing at them with an (int *) and then using (++) to walk through them as an array. How does this work if the arguments are in registers? Do MIPS, Clipper, and the new AMD micro have the same problems? Thanks, Keith Kelleman allegra!kak