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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9df2768f19ef857b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!xmission!news.utah.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: bdbryant@mail.utexas.edu (Bobby D. Bryant) Newsgroups: comp.lang.ada Subject: Re: Question on Ada Expressive Power Date: Sun, 22 Jan 2006 15:20:53 +0000 (UTC) Organization: dis- Message-ID: References: <1137903774.826703.118170@g49g2000cwa.googlegroups.com> Reply-To: bdbryant@mail.utexas.edu NNTP-Posting-Host: dial-a-128-83-253-74.telesys.its.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: geraldo.cc.utexas.edu 1137943253 3804 128.83.253.74 (22 Jan 2006 15:20:53 GMT) X-Complaints-To: abuse@utexas.edu NNTP-Posting-Date: Sun, 22 Jan 2006 15:20:53 +0000 (UTC) X-Newsreader: knews 1.0b.1 Xref: g2news1.google.com comp.lang.ada:2572 Date: 2006-01-22T15:20:53+00:00 List-Id: On Sun, 22 Jan 2006, pnkflyd831@gmail.com wrote: > Does anyone have any statistics on the Expressive Power of Ada in > terms of lines of Ada code to lines of Assembly code? Additional data > would be useful as it affects the usefulness of the statistic, however > limited data is better than none so any contributions would be much > appreciated. Target platform, compiler used, optimization settings, > would probably be relevant. Also aspects of the language used: tagged > types, access types, tasks, protected objects, dynamic allocation, > exception handling ect... > > I am working with a group to develop this information on a variety of > programming languages and think it would be an interesting statistic. > Depending on the success of our research, and your interest, I will > post results back to the forum. Check first to see whether it's a linear relation. Otherwise the statistic might be meaningless. Perhaps you can measure the ratio empirically by compiling some programs and comparing the LOC of their source files to the size of their object files. You would have to avoid static linking and in-lining, and you might want to avoid programs that specify a lot of hard-coded data (depending on what you think you're trying to measure). You could also make the measurement for several languages with a fair amount of consistency by using a multi-lingual compiler such as GCC. However, I suspect the metric is going to tell you more about programmers' habits than about the expressive power of a language per se. -- Bobby Bryant Austin, Texas