From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac02560f0af03a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-01 08:43:01 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? References: <3FEC4E89.2070804@noplace.com> <1072458199.346049@master.nyc.kbcfp.com> <3fec7c21$0$4764$61fed72c@news.rcn.com> <4iBIb.8173$qS3.498@nwrdny03.gnilink.net> <1072883131.278899@master.nyc.kbcfp.com> <1072891494.595791@master.nyc.kbcfp.com> <1072899508.453543@master.nyc.kbcfp.com> <1072906542.723974@master.nyc.kbcfp.com> <3ff38b16$0$4759$61fed72c@news.rcn.com> <3ff44baf$0$4754$61fed72c@news.rcn.com> In-Reply-To: <3ff44baf$0$4754$61fed72c@news.rcn.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 01 Jan 2004 16:43:00 GMT NNTP-Posting-Host: 162.84.192.162 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1072975380 162.84.192.162 (Thu, 01 Jan 2004 11:43:00 EST) NNTP-Posting-Date: Thu, 01 Jan 2004 11:43:00 EST Xref: archiver1.google.com comp.lang.ada:4016 Date: 2004-01-01T16:43:00+00:00 List-Id: Frank J. Lhota wrote: > For functions with variable argument lists the "appropriate amount" > will vary from call to call. Cetainly, but the caller always knows how much that is. For a call like f(1, 2, 3) the caller can do (on the COBOL Processor(tm) :-) subtract 3 from stack_pointer move 1 to stack_pointer[1] move 2 to stack_pointer[2] move 3 to stack_pointer[3] call f add 3 to stack_pointer There's no need at all to process the parmeters from right to left.