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 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: 2003-12-31 21:28:28 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? Date: Thu, 01 Jan 2004 05:28:26 +0000 Message-ID: References: <3FEC43B2.5080606@noplace.com> <1072450300.440355@master.nyc.kbcfp.com> <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> <3FF39615.7070408@noplace.com> NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1072934907 2144 62.49.62.197 (1 Jan 2004 05:28:27 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 1 Jan 2004 05:28:27 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4010 Date: 2004-01-01T05:28:26+00:00 List-Id: On Thu, 01 Jan 2004 03:38:13 +0000, Marin David Condic wrote: > doesn't care how they got there. Hence no reason to believe there is a > "C Method" or a "Pascal Method" of passing parameters. Well, for every processor that I have used there is a similar (or same) method of allocating space for parameters. I have noticed as time goes by that more registers were used, but when we talk of the (braindead) x86 we need to step back 20 years, as the CPU's of the time were more advanced and the conventions that were being proposed were also becoming irrelevant as the x86 was becoming more accepted. I worked originally on the Amiga where the convention was to use the registers (and hence not to create a new stack frame on every call), we have stepped back 20 years (wrt x86) by having to provide a limited set of parameters in registers (4 or 5 - if not less) and then to provide everything else in stack. So, as far as I am concerned there is still a C & PASCAL convention, it's just a matter of how the compiler works I suppose. Luke.