From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 4 Jan 93 20:20:01 GMT From: noc.near.net!inmet!ryer@uunet.uu.net (Mike Ryer) Subject: Re: CPU resources for embedded Ada programs Message-ID: <1993Jan4.202001.21607@inmet.camb.inmet.com> List-Id: Regarding the statistic of 1MB RAM per 20k SLOC If you are counting full Ada Statements+Declarations, then 50 bytes each seems high. This could be due to very intricate Ada statements, a lot of big buffers, tables, and other data areas, or a lousy compiler. If you are counting just plain lines, then 50 bytes per line indicates either pathological coding practices, gargantuan buffers, or a truly pathetic compiler. Most applications I've seen result in 3 to 6 machine instructions per executable statement, and 2 to 3 words per declaration. I'd expect 20k statements+declarations to yield about 500k. 20k lines should yield about 200k. Regarding the statistic of 3 MIPS per 20k SLOC I'd expect anything between .00000001 and 1,000,000. It depends on what you're doing. Mike Ryer