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: 2004-01-01 09:18:33 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!62-6119-cm.able.ES!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? Date: Thu, 1 Jan 2004 18:18:31 +0100 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> <1072891494.595791@master.nyc.kbcfp.com> <1072899508.453543@master.nyc.kbcfp.com> NNTP-Posting-Host: 62-6119-cm.able.es (62.101.161.19) X-Trace: news.uni-berlin.de 1072977511 2349874 62.101.161.19 ([49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:4018 Date: 2004-01-01T18:18:31+01:00 List-Id: Frank J. Lhota dice... > "Hyman Rosen" wrote in message > news:1072899508.453543@master.nyc.kbcfp.com... > > This is vanilla C for that platform. Varargs functions are called the > > same way. The function itself will then muck about with the registers as > > needed to make things work. > > Now I get it! The problem is that I have spent most of my career with the > Intel architecture, where the paucity of registers preclude any extensive > use of registers for parameter passing. Of course, passing parameters by > registers avoids all of these issues, since nothing is pushed onto or popped > off the stack. I remember from my days of assembler of some compiler which used frequently the AX register for the first parameter and function results. Though it was maybe a Pascal compiler %-) Just a curiosity.