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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no 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 16:24:02 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!petbe.visi.com!news-out.visi.com!hermes.visi.com!199.184.165.244.MISMATCH!rcn!feed3.news.rcn.net!not-for-mail Reply-To: "Frank J. Lhota" From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <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> Subject: Re: GNAT parameter passing, C-style? Date: Thu, 1 Jan 2004 19:24:01 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <3ff4ba22$0$4761$61fed72c@news.rcn.com> NNTP-Posting-Host: 209.6.176.101 X-Trace: 1073003042 reader3.news.rcn.net 4761 209.6.176.101:1333 X-Complaints-To: abuse@rcn.com Xref: archiver1.google.com comp.lang.ada:4025 Date: 2004-01-01T19:24:01-05:00 List-Id: "Hyman Rosen" wrote in message news:o6YIb.8353$x34.4946@nwrdny02.gnilink.net... > 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. Yes, but what about the callee?