A solution to the multiple inclusion problem

Ken Yap ken at cs.rochester.edu
Fri Oct 27 15:37:31 AEST 1989


|->But is this really as inefficient as people think? I tried the
|->following on a Sun-4/60
|->
|->% wc grammar0.cc
|->     932    2944   19700 grammar0.cc
|->% g++ -I../h -E grammar0.cc | wc
|->    3728    8219   63497
|->% time g++ -I../h -E grammar0.cc > /tmp/foo.cc
|->0.4u 0.3s 0:01 44% 0+208k 0+9io 0pf+0w
|->
|->Looks pretty insignificant compared to parsing and CG time.
|
|       What are you comparing to what?  Only one time measurement is given.
|This makes it rather meaningless to draw any conclusions.

Sorry, sloppy of me:

% time g++ -I../h -c grammar0.cc
10.5u 2.5s 0:22 57% 0+1532k 34+37io 202pf+0w

5% of the total time is not something I care to worry about at this time.



More information about the Comp.lang.c mailing list