home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / minix / 4416 < prev    next >
Encoding:
Text File  |  1992-09-10  |  3.1 KB  |  76 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: ALVISET%FRNSAE11.BitNet@pucc.princeton.edu's message of Wed, 9 Sep 1992 19:00:57 GMT
  6. Message-ID: <ETLMIKE.92Sep10173232@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>
  11. Date: Thu, 10 Sep 1992 16:32:32 GMT
  12. Lines: 62
  13.  
  14.  
  15. In article <1992Sep9.120116.13849@udel.edu> ALVISET%FRNSAE11.BitNet@pucc.princeton.edu writes:
  16.  
  17.  
  18.    In article <1992Sep3.103808.12710@mnemosyne.cs.du.edu> vromano@nyx.cs.du.edu
  19.     (Vincenzo Romano) writes:
  20.    >>I'm looking for a copy of the Minix Operating System recompiled by using
  21.    >>the GNU-C compiler. I already own the Minix 1.5 but I'm sure that on my
  22.    >>386sx machine such a recompiled OS should be faster, isn't it?
  23.  
  24. Not necessarily
  25.  
  26.    >
  27.    >>Can anyone help me? Can anyone tell me where I can FTP this OS or,at least
  28.    >>a pre-compiled minix port of the GNU-C?
  29.  
  30.    >As far as I know, there is no gcc-compiled version of PC-minix
  31.    >available.  Gcc won't even run on the basic minix setup: you have to
  32.    >upgrade to 386-minix by Bruce Evans (this is a good idea anyway, as it
  33.    >allows you to run other programs that won't work under normal minix
  34.    >otherwise).  The 386-patches are available (or were when I got them) at
  35.    >least from plains.nodak.edu, (/pub/minix/oz/ I think).
  36.  
  37. [Linux Advert deleted :)]
  38.  
  39.    Mr Linus is wrong. There is a 32 bits Minix available from the
  40.    Minix Centre (Look at the FAQ for details). It IS compiled with gcc
  41.    except the kernel proper compiled with Bcc.
  42.  
  43. Yup - mm and fs compiled cleanly by GCC, but not kernel.
  44.  
  45.    GCC generates only 32 bits code but before MINIX puts itself in
  46.    protected mode you must use only instructions in the 16 bits set.
  47.    So you need a compiler able to generate both 32 and 16 bits code(BCC).
  48.    Both compilers are included with the system.
  49.  
  50. All true.
  51.  
  52. Unfortunately, I have gone to the effort of changing the Minix
  53. Centre's version of Minix-386 precisely to allow GCC to compile the
  54. kernel. This has involved use of a new boot program (*) that keeps
  55. all the 16-bit code in the booter, and uses the BIOS protected mode
  56. switch to jump directly to a 32-bit Minix kernel, whose start-up
  57. routines have been altered. In my mind, this is a much cleaner
  58. start-up, and the boot program is considerably better (* - Boot
  59. Monitor 1.3, written by Kees Bot kjb@cs.vu.nl).
  60.  
  61. Now, granted I have a lot of other changes in my version of the
  62. kernel, but I can say that after using GCC to compile this,
  63. my system runs a LOT slower than when BCC compiled it in 32-bit
  64. mode.
  65.  
  66. GCC has a lot of advantages over BCC, especially in the error message
  67. side, but in terms of speed of SYSTEM here, BCC wins. I know not why
  68. (except maybe in the context switch - not saving fs/gs).
  69.  
  70.  
  71. Mike
  72. --
  73. Mike Wilcox                    Guildford, Surrey, England.
  74. CME 20 Design Dept.            Tel:   +44-483-303666
  75. Ericsson Cellular Systems.     Email: etlmike@deep-thought.ericsson.se
  76.