comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Expected bytes per sloc (semicolons) performance
Date: Fri, 21 Sep 2001 16:22:05 GMT
Date: 2001-09-21T16:22:05+00:00	[thread overview]
Message-ID: <NOJq7.9063$p77.30761@www.newsranger.com> (raw)
In-Reply-To: 8f23da36.0109201115.2f708535@posting.google.com

In article <8f23da36.0109201115.2f708535@posting.google.com>, Mike Harrison
says...
>
>Thanks for the responses.  Sorry the thread turned into a RISC discussion.
>
>So let me try to get back on track with a different question:
>If you were bidding a 5K sloc estimated size program (algorithmic in 
>nature) to go into a satellite with limited memory, what sort of 
>bytes/per sloc estimate would you use, 5, 10, 20, 50, 100?  Our
>experience is 50 or more.  Is this what others are seeing
>with today's Ada compiler technology?

I'm not sure I'd want to use a random number from a newsgroup in such a
calculation. A lot of folks here don't work in such constricted memory
environments, and are apt to go "hog wild" on memory from time to time. To give
you an idea, on my last job, I inadverntantly ended up needing a data buffer of
> 100MB. I offered to recode the thing, but was told that it would be easier (and cheaper) to just respec the system using newer motherboards loaded with 1GB of RAM! (Which they promptly did). We run in a non-embedded real-time environment (simulations), so speed and regularity is much more important to us than memory usage.

Also, I'd expect the count to be affected by style factors such as how large
subprograms tend to be and how many subprograms and declarations are placed in
one package, how extensively generics are used, use of tagged types and dynamic
dispatch, optimization, etc.

For the record, on the project I just mentioned there are currently 79K SLOC
(according to ada_count) generating an executable of 12.5MB. That would work out
to very roughly 150 bytes/SLOC. If you throw in the debug symbol file, that
number would more than double. However, this includes a few things linked in,
such as the GreenHills ada library which is about 900K by itself. But factoring
that stuff out doesn't change the final number much.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      parent reply	other threads:[~2001-09-21 16:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-18 22:03 Expected bytes per sloc (semicolons) performance Mike Harrison
2001-09-19  0:04 ` Jeff Creem
2001-09-19 10:13   ` Robert Dewar
2001-09-20  0:43     ` David B. Littell
2001-09-20 11:28       ` Steffen Huber
2001-09-20 13:10         ` Tarjei T. Jensen
2001-09-22 14:36           ` David B. Littell
2001-09-20 19:15   ` Mike Harrison
2001-09-21 14:02     ` Stephen Leake
2001-09-21 15:30       ` Mats Weber
2001-09-21 18:00         ` default
2001-09-24 17:03           ` Stephen Leake
2001-09-25 23:00             ` default
2001-09-25 16:08         ` tmoran
2001-09-25 16:44           ` Wes Groleau
2001-09-25 20:51             ` tmoran
2001-09-25 20:32           ` Stephen Leake
2001-09-25 21:04             ` Marin David Condic
2001-09-26 15:19               ` Stephen Leake
2001-09-26 16:58                 ` Marin David Condic
2001-09-21 16:22     ` Ted Dennison [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox