home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 213 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: globe.indirect.com!fnf
  2. From: fnf@fishpond.amigalib.com (Fred Fish)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ADE
  5. Date: 4 Jan 1996 17:53:52 GMT
  6. Organization: Amiga Library Services
  7. Message-ID: <4ch47g$ekk@globe.indirect.com>
  8. References: <4cahvo$fcg@Mars.mcs.com> <4ceier$eil@globe.indirect.com> <oj6g2dwiz6u.fsf@hpsrk.fc.hp.com>
  9. Reply-To: fnf@amigalib.com
  10. NNTP-Posting-Host: amigalib.com
  11.  
  12. In article <oj6g2dwiz6u.fsf@hpsrk.fc.hp.com>,
  13. Steve Koren <koren@hpsrk.fc.hp.com> wrote:
  14. >
  15. >fnf@fishpond.amigalib.com (Fred Fish) wrote:
  16. >
  17. >> is that a complete multistage rebuild after each significant change takes
  18. >> over two days on my A4000 with 40Mhz WarpEngine.  I'm getting to be in
  19. >
  20. >Holy smokes, Fred!  What on earth are you compiling, anyway? :-)
  21.  
  22. Here are the raw statistics:
  23.  
  24.         Total size of source file tree: 255 Mb
  25.  
  26.         File type                       Lines           Bytes
  27.         ---------------------           ---------       ----------
  28.         C files (*.c):                  3,086,080       85,810,213
  29.         C headers (*.h):                  612,378       20,862,101
  30.         C++ files (*.cc):                 165,667        3,823,759
  31.         Ada files (*.adb *.ads):          356,691       12,849,740
  32.  
  33.                                 TOTALS  4,220,816      127,566,629
  34.  
  35. A complete cycle is normally two complete builds of the tree.  When
  36. you make a change, you build it once, install it, and build it again.
  37. If both build trees match, then you are done, if not, you have to
  38. build it again until the last two builds match.
  39.  
  40. Sometimes a change, such as a C compiler upgrade, will require three
  41. builds to reach a stable state.
  42.  
  43. >Depends a whole lot on your source, but on my 040/25, I figure SAS/C is
  44. >compiling bewteen 100 and 400 C lines per second (much more if you count
  45. >preprocessed headers).  Even at 100 lines/sec, that'd be 17,280,000 source
  46. >lines in 2 days, never mind that I've got a slower CPU.
  47. >
  48. >I guess you must be using gcc?  Is it really that much slower?
  49.  
  50. I haven't actually run any tests to determine an average figure for
  51. the compiler in terms of lines of code per second.  Note though that a
  52. large part of the build process involves doing things other than
  53. compiling.  For example, many products generate GNU "info" files with
  54. texinfo, some run TeX to create manuals in dvi and postscript form,
  55. some distributions use emacs to byte compile elisp files, some use
  56. groff to generate manual pages.  Some parts of the tree are compiled
  57. more than once during a given build, to generate various flavors (such
  58. as the half dozen different flavors of ixemul.library).  I am also
  59. using -O2, which is significantly more expensive than just -O.
  60.  
  61. To top it off, the source tree resides in a CVS repository on another
  62. system than the Amiga on which the build tree resides, although my
  63. tests indicate that having the tree local only saves about 20%, which
  64. is not worth the headaches of having to keep two source trees in sync.
  65.  
  66. As a *very* rough guess, I would expect that about half of the total
  67. build time is pure compilation (including C, C++, ADA, and Fortran),
  68. which means we are compiling about 5 million lines of code in 24 hours
  69. of CPU time, for about 60 lines per second.
  70.  
  71. -Fred
  72. -- 
  73. =============================================================================
  74. Amiga Library Services * 610 N. Alma School Rd, #18 * Chandler, Az 85224-3687
  75. FAX: (602) 491-0048     Voice: (800) 804-0833      Email: orders@amigalib.com
  76. =============================================================================
  77.