home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
- Subject: Re: ACK ANSI Compiler
- Message-ID: <1993Jan8.001739.3887@klaava.Helsinki.FI>
- Organization: University of Helsinki
- References: <103840@netnews.upenn.edu> <C0HpKv.3t7@cs.vu.nl> <C0I2CK.75q@hermes.hrz.uni-bielefeld.de>
- Date: Fri, 8 Jan 1993 00:17:39 GMT
- Lines: 54
-
- In article <C0I2CK.75q@hermes.hrz.uni-bielefeld.de> malte@techfak.uni-bielefeld.de (Malte Uhl) writes:
- >
- >Ok, we all know the reasons for ACK not being free now. I'd like to raise a
- >serious discussion about using gcc only for compiling and developing Minix
- >on all of the supported platforms. As Linus Torwalds stated some postings ago,
- >$200 for a however-good compiler set is more expensive than a free compiler
- >and some memory.
-
- Note that the current compiler does work (as stated by ast several
- times), and is also "free" (ie everybody who has minix already has it),
- so using it is no problem apart from the warnings it results in. So for
- kernel developement it's probably the best way to go, and it won't even
- require any more memory.
-
- Also, gcc isn't really an option for the 16-bit PC minix versions
- anyway, so you can't use it for that. When I said that there are other
- free compilers around, I was just wondering why people got so excited
- about the cost of the compiler upgrade when it's not even required, and
- most people (68k and 386) can use gcc for most of their compilation.
-
- >Why do I think so ? gcc runs on a very wide variety of platforms, produces
- >reasonably "good" code and implements the (are there more than one ?) ANSI
- >standard. Agreed, it is a memory hog, but you'll have a hard time searching
- >for a C program that you cannot compile with, say 4 MB RAM. This is what
- >an Atari ST is capable of.
-
- Actually with gcc (especially 2.x), it's not hard to find programs that
- require more than 4MB to compile - if they contain lots of array
- initializers, gcc eats up memory like nothing else. Someone reported
- >20MB memory usage while compiling some bigger X programs under linux,
- and things like the flex big-tests easily eat up >10MB. Most programs
- require much less, of course, but even 4MB isn't necessarily enough if
- you can't swap.
-
- >A nice (in my opinion) side effect of using gcc would be the removal of
- >80[012]86 support and its a fine occasion to make integers 32 bits large
- >by default, too.
-
- Somehow I don't think everybody will agree with you :-). I personally
- couldn't care less about 16-bit support, but I doubt ast is really
- interested, nor the people who actually use minix on those machines.
-
- Besides, gcc is also very slow: there was this thread on c.o.l about
- kernel compilation speed, and the worst results were in the excess of 10
- *hours*. Of course, that's on a small machine that swaps like mad all
- the time, and I personally make my kernel in a matter of minutes (fast
- machine, 20MB memory), but it's still a point worth mentioning.
-
- ACK (and bcc and CvW) are probably orders of magnitudes faster during
- actual compilation. Not everybody wants to wait for a kernel compile:
- my solution to this is to buy a faster machine, but that's not always an
- option.
-
- Linus
-