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 19:38:14 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <3FF39615.7070408@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Jan 2004 03:38:13 GMT NNTP-Posting-Host: 209.165.25.167 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1072928293 209.165.25.167 (Wed, 31 Dec 2003 19:38:13 PST) NNTP-Posting-Date: Wed, 31 Dec 2003 19:38:13 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:4006 Date: 2004-01-01T03:38:13+00:00 List-Id: This was my original point. AFAIK, there is no *requirement* that the parameters be put on a stack in any particular order - or even that there must be a "stack". A given machine might scrawl its parameters on a piece of paper with a pen plotter in Chinese characters from bottom to top and read them back in via scanner & OCR program reading right to left. So long as the parameters end up in the subroutine, the *standard* doesn't care how they got there. Hence no reason to believe there is a "C Method" or a "Pascal Method" of passing parameters. We need to remember this or we muddy the waters when discussing what is required for Ada vs any other language. MDC Hyman Rosen wrote: > > The upshot is that even when calling a function without a prototype, the > compiler may pass arguments any way it likes, and it is absolutely not > required to "push" them onto a "stack" in any particular order. > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "Face it ladies, its not the dress that makes you look fat. Its the FAT that makes you look fat." -- Al Bundy ======================================================================