home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / minix / 4418 < prev    next >
Encoding:
Text File  |  1992-09-11  |  2.5 KB  |  64 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!mcsun!sunic!ericom!ericom!etlmike
  3. From: etlmike@jerry.ericsson.se (Mike Wilcox)
  4. Subject: Re: (none given)
  5. In-Reply-To: hp@vmars.tuwien.ac.at's message of Fri, 11 Sep 1992 09:34:44 GMT
  6. Message-ID: <ETLMIKE.92Sep11121917@jerry.ericsson.se>
  7. Sender: news@ericsson.se
  8. Nntp-Posting-Host: jerry.ericsson.se
  9. Organization: Ericsson Ltd., Cellular Systems & Special Networks.
  10. References: <1992Sep9.120116.13849@udel.edu> <ETLMIKE.92Sep10173232@jerry.ericsson.se>
  11.     <1992Sep11.093444.223@email.tuwien.ac.at>
  12. Date: Fri, 11 Sep 1992 11:19:17 GMT
  13. Lines: 49
  14.  
  15.  
  16. In article <1992Sep11.093444.223@email.tuwien.ac.at> hp@vmars.tuwien.ac.at (Peter Holzer) writes:
  17.  
  18.    etlmike@jerry.ericsson.se (Mike Wilcox) writes:
  19.  
  20.    >Unfortunately, I have gone to the effort of changing the Minix
  21.    >Centre's version of Minix-386 precisely to allow GCC to compile the
  22.    >kernel.
  23.    [...]
  24.    >Now, granted I have a lot of other changes in my version of the
  25.    >kernel, but I can say that after using GCC to compile this,
  26.    >my system runs a LOT slower than when BCC compiled it in 32-bit
  27.    >mode.
  28.  
  29.    Can you still compile your system with bcc (or c386)? If so, you could
  30.    easily test if the lack of speed is due to the compiler or your
  31.    changes.
  32.  
  33. I haven't recently tried - But, I know the changes are slowing the
  34. system down, AND that GCC slows it down some more.
  35.  
  36.    Also, gcc has gazillions of options to control optimization. Some of
  37.    them (e.g. -fomit_frame_pointer) make a huge difference in speed. The
  38.    code produced by gcc without optimization is quite slow, usually.
  39.  
  40. Hmmm - it is very slow when no options are used. I have many
  41. screenful's of benchmark speeds with the kernel compiled with
  42. different compilers, and different options (especially to GCC).
  43. Also with different speeds for different versions of GCC!
  44.  
  45. I think best compilation is with -O -fomit-frame-pointer
  46. -fstrength-reduce -fcombine-regs.
  47.  
  48. I seem to remember that using -finline-functions actually made things
  49. worse. If anyone can explain THAT one to me, I'd be grateful!
  50.  
  51.  
  52.        Peter
  53.    -- 
  54.    |    _  | Peter J. Holzer                       | Think of it   |
  55.    | |_|_) | Technical University Vienna           | as evolution  |
  56.    | | |   | Dept. for Real-Time Systems           | in action!    |
  57.    | __/   | hp@vmars.tuwien.ac.at                 |     Tony Rand |
  58.  
  59. Mike
  60. --
  61. Mike Wilcox                    Guildford, Surrey, England.
  62. CME 20 Design Dept.            Tel:   +44-483-303666
  63. Ericsson Cellular Systems.     Email: etlmike@deep-thought.ericsson.se
  64.