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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce5d58cbd667531 X-Google-Attributes: gid103376,public From: Erik Magnuson Subject: Re: Conversion factor for Ada 95 Date: 1997/02/14 Message-ID: #1/1 X-Deja-AN: 218833073 Sender: erik@worf X-Nntp-Posting-Host: dialup05 References: <3300EAB6.47C6@csehp1.mdc.com> Organization: ENSCO, INC. Newsgroups: comp.lang.ada Date: 1997-02-14T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) writes: > < compiler on a particular target. The conversion is from SLOC (loosely > translated: number of semi-colons) to bytes of executable code.>> > > It is absolutely *essential* in a language like Ada to also factor > coding style into this equation, otherwise you can get some very nasty > surprised. For instance, code using finalization heavily can generate > lots of extra code, as can heavy tasking code. Amen to that. I was asked to do SLOC to byte measurements as part of some compiler evaluations for Ada 83 some time back. The code used was from 5 different sources, but the for the same applications domain (i.e. embedded avionics.) Using the same compiler and the same compile options, there was a 5 to 1 difference between the largest and the smallest factors. This was greater than the both compiler and target architecture factors! This is where I really learned to appreciate YMMV disclaimers. -- Erik Magnuson, ENSCO erik@fl.ensco.com MARSS-REPL (407) 783-7114