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,539c04254abf1b37 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-01 15:41:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: compiler benchmark comparisons References: <338040f8.0203011517.5a1ebdeb@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 64.175.242.42 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1015026056 ST000 64.175.242.42 (Fri, 01 Mar 2002 18:40:56 EST) NNTP-Posting-Date: Fri, 01 Mar 2002 18:40:56 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: Q[O[SX[DGJVOBFD[LZKJOPHAWB\^PBQLGPQRZUEK@YUDUWYAKVUOPCW[ML\JXUCKVFDYZKBMSFX^OMSAFNTINTDDMVW[X\THOPXZRVOCJTUTPC\_JSBVX\KAOTBAJBVMZTYAKMNLDI_MFDSSOLXINH__FS^\WQGHGI^C@E[A_CF\AQLDQ\BTMPLDFNVUQ_VM Date: Fri, 01 Mar 2002 23:40:56 GMT Xref: archiver1.google.com comp.lang.ada:20675 Date: 2002-03-01T23:40:56+00:00 List-Id: > and now it look more like the C version > ... > for (i=0; i<100; ++i) > printf("%d\n",i); Seems to me a closer approximation to the C would be procedure printf(s : in string; i : in integer) is begin null;end printf; -- then lots of copies of for i in 1..100 loop printf("%d\n", i); end loop; Making two function calls, whether they are in separate statements, or, worse, one is a variable length string-returning parameter to the other, likely takes the compiler more time than just one call, and, if IO time is a consideration, then having a source file that is twice as large is also a disadvantage.