🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #13412

varargs and register windows

#13412
From: kak
Date: Mon, 06 Apr 1987 15:22
15 lines
1022 bytes
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
Technical Details
Message-ID: <6575@allegra.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!allegra!kak

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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