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-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!news.glorb.com!news2.arglkargh.de!news.snowkitty.org!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Question on Ada Expressive Power Date: Sun, 22 Jan 2006 10:46:27 +0100 Organization: Jacob's private Usenet server Message-ID: References: <1137903774.826703.118170@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 80.241.165.34 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1137923213 20452 80.241.165.34 (22 Jan 2006 09:46:53 GMT) X-Complaints-To: sparre@jacob-sparre.dk NNTP-Posting-Date: Sun, 22 Jan 2006 09:46:53 +0000 (UTC) User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:pMLE0O54ukrS0IrNUginrKpoafg= Xref: g2news1.google.com comp.lang.ada:2570 Date: 2006-01-22T10:46:27+01:00 List-Id: pnkflyd831@gmail.com writes: > Does anyone have any statistics on the Expressive Power of Ada in > terms of lines of Ada code to lines of Assembly code? The GNU/Ada (GNAT) compiler should be able to help you extract this number given some source code. IIRC the relevant command line option is "-S". You can download the source code for quite a few Ada programs and libraries, so there's nothing which prevents you from doing the measurements yourself. > 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. With GNU/Ada it would be relatively easy to get numbers for different optimization settings. If you design the experiment and announce it here, you can probably get help with running it on platforms you haven't got access to yourself. > Also aspects of the language used: tagged types, access types, > tasks, protected objects, dynamic allocation, exception handling > ect... I would suggest that you download a collection of Ada source files and classify them according to the various aspects of the language you're interested in. The rough classification can probably be done using some regular expressions (`grep` on POSIX systems). Greetings, Jacob -- "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it" -- Richard Feynman