home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
- Newsgroups: comp.os.minix
- Subject: Re: (none given)
- Message-ID: <1992Sep11.120003.27063@klaava.Helsinki.FI>
- Date: 11 Sep 92 12:00:03 GMT
- References: <ETLMIKE.92Sep10173232@jerry.ericsson.se> <1992Sep11.093444.223@email.tuwien.ac.at> <ETLMIKE.92Sep11121917@jerry.ericsson.se>
- Organization: University of Helsinki
- Lines: 35
-
- [ egg on my face - I didn't think a gcc-compiled minix existed at all.
- Btw, did you rewrite all the .x files in gas syntax, or are you using
- some weird combination of gcc/bcc/bas? ]
-
- In article <ETLMIKE.92Sep11121917@jerry.ericsson.se> etlmike@jerry.ericsson.se (Mike Wilcox) writes:
- >
- >Hmmm - it is very slow when no options are used. I have many
- >screenful's of benchmark speeds with the kernel compiled with
- >different compilers, and different options (especially to GCC).
- >Also with different speeds for different versions of GCC!
- >
- >I think best compilation is with -O -fomit-frame-pointer
- >-fstrength-reduce -fcombine-regs.
-
- You might also try gcc-2.2.2, which gives some noticeable speed
- increases under some circumstances (notably floating-point which is
- essentially useless under minix unless you have patched that too, but
- integer performance is also better).
-
- >I seem to remember that using -finline-functions actually made things
- >worse. If anyone can explain THAT one to me, I'd be grateful!
-
- This could be related to the general gcc speed decrease: has the kernel
- by any chance grown noticeably? -finline-functions (and some other
- options line -fstrength-reduce, -m486) can make the executable image
- noticeably bigger. In general, gcc doesn't even try to make things
- small, and binaries compiled with gcc can be bigger than those of other
- compilers.
-
- Size is normally not a problem, but if your minix has buffer-size
- limitations (low 1MB or similar - I know the version I used had that
- limit), over-all performance can go down due to much smaller buffer
- space.
-
- Linus
-