home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / ada / 3872 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!noc.near.net!inmet!ryer
  3. From: ryer@inmet.camb.inmet.com (Mike Ryer)
  4. Subject: Re: CPU resources for embedded Ada programs
  5. Message-ID: <1993Jan4.202001.21607@inmet.camb.inmet.com>
  6. Organization: Intermetrics Inc, Cambridge MA
  7. References: <cffs.14@fox.nstn.ns.ca>
  8. Date: Mon, 4 Jan 1993 20:20:01 GMT
  9. Lines: 22
  10.  
  11. Regarding the statistic of 1MB RAM per 20k SLOC
  12.    
  13.    If you are counting full Ada Statements+Declarations, then 50 bytes
  14.    each seems high.  This could be due to very intricate Ada statements,
  15.    a lot of big buffers, tables, and other data areas, or a lousy compiler.
  16.  
  17.    If you are counting just plain lines, then 50 bytes per line indicates
  18.    either pathological coding practices, gargantuan buffers, or a truly
  19.    pathetic compiler.
  20.  
  21.    Most applications I've seen result in 3 to 6 machine instructions per
  22.    executable statement, and 2 to 3 words per declaration.  I'd expect
  23.    20k statements+declarations to yield about 500k.  20k lines should yield
  24.    about 200k.
  25.  
  26. Regarding the statistic of 3 MIPS per 20k SLOC
  27.  
  28.    I'd expect anything between .00000001 and 1,000,000.  It depends on what
  29.    you're doing.
  30.  
  31.  
  32. Mike Ryer
  33.