home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!wupost!monsanto.com!skws02!bcschu
- From: bcschu@skws02.monsanto.com (Brett Schultz)
- Subject: Re: Optimizing code for tests
- Message-ID: <1992Aug12.200303.25050@tin.monsanto.com>
- Sender: news@tin.monsanto.com (USENET News System)
- Organization: Monsanto Company
- References: <1992Aug12.153158.13990@squid.tram.com>
- Date: Wed, 12 Aug 1992 20:03:03 GMT
- Lines: 22
-
- I am writing a computationally expensive program now. In order to make it
- run faster, I compiled each object using cc with the -j option and then the
- entire thing with the -O3 option. This didn't run any faster than when I had
- used the -g option. What can the compiler do to help the program run faster?
-
- My program is expensive also due to comparisons. I think that is what Jeffrey
- L Bromberg was talking about. I think what he was asking is if the compiler
- optimizes comparisons in your algorithm (right??). I don't know if he tried
- to use the compiler optimization options. Try it and let me know what you get.
-
- Did I use the optimatization options correctly with cc, and if so, why didn't
- it make my program faster.
-
- Any input will be helpful
-
- Thanks in advance.
-
-
- Brett
-
- bcschu@skws02.monsanto.com
-
-