* simple command-line optimizations I can use?
@ 1994-05-23 17:56 Chester Liu
1994-05-23 18:59 ` John R. Reagan
0 siblings, 1 reply; 6+ messages in thread
From: Chester Liu @ 1994-05-23 17:56 UTC (permalink / raw)
I would like to get all the optimization power out of the C and
fortran compilers on the Alpha platforms. Are there any other
flags I can use other than the -O's?
For example, on the SGI's I can use:
cc -O2 -mips -sopt
What other optimizations packages are out there besides KAP?
Thanks,
Chester Liu
UMass - Amherst
cht@twain.ucs.umass.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple command-line optimizations I can use?
1994-05-23 17:56 simple command-line optimizations I can use? Chester Liu
@ 1994-05-23 18:59 ` John R. Reagan
1994-05-24 2:16 ` John Hascall
1994-05-26 4:03 ` David B. Ritch
0 siblings, 2 replies; 6+ messages in thread
From: John R. Reagan @ 1994-05-23 18:59 UTC (permalink / raw)
Just look at the man pages. For f77, check out -O (it goes upto -O5),
-assume noaccuracy_senstivie, -math_library fast, and -fast (a synonym for
all the other switches to get the fastest possible code).
---
John Reagan
The Languages Group
Digital Equipment Corporation
reagan@hiyall.enet.dec.com
Disclaimer: The opinions and statements expressed by me are not
necessarily those of Digital Equipment Corporation.
---
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: simple command-line optimizations I can use?
1994-05-23 18:59 ` John R. Reagan
@ 1994-05-24 2:16 ` John Hascall
1994-05-26 4:03 ` David B. Ritch
1 sibling, 0 replies; 6+ messages in thread
From: John Hascall @ 1994-05-24 2:16 UTC (permalink / raw)
John R. Reagan <reagan@hiyall.enet.dec.com> wrote:
}
}Just look at the man pages. For f77, check out -O (it goes upto -O5),
}-assume noaccuracy_senstivie, -math_library fast, and -fast (a synonym for
}all the other switches to get the fastest possible code).
Also -non_shared seems to make faster code.
John
--
John Hascall ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple command-line optimizations I can use?
1994-05-23 18:59 ` John R. Reagan
1994-05-24 2:16 ` John Hascall
@ 1994-05-26 4:03 ` David B. Ritch
1994-05-27 15:35 ` Dirk Grunwald
1994-05-27 16:22 ` Matthew Liggett
1 sibling, 2 replies; 6+ messages in thread
From: David B. Ritch @ 1994-05-26 4:03 UTC (permalink / raw)
For C code, you might want to try "gcc -O2". ;-)
For most of my applications, GNU C has produced faster executables.
However, version 2.5.8 has a problem with local arrays longer than
about 32k elements - the compiler dumps core. Versions 2.5.6 and
2.5.7 do not share this problem.
David
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple command-line optimizations I can use?
1994-05-26 4:03 ` David B. Ritch
@ 1994-05-27 15:35 ` Dirk Grunwald
1994-05-27 16:22 ` Matthew Liggett
1 sibling, 0 replies; 6+ messages in thread
From: Dirk Grunwald @ 1994-05-27 15:35 UTC (permalink / raw)
>>>>> "DBR" == David B Ritch <dbritch@descartes.super.org> writes:
In article <DBRITCH.94May26000307@descartes.super.org> dbritch@descartes.super.org (David B. Ritch) writes:
DBR> For C code, you might want to try "gcc -O2". ;-)
DBR> For most of my applications, GNU C has produced faster executables.
---
I haven't found this to be the case on the Alpha machines. I've found
that the `cc -migrate' compiler (GEM backend) produces the fastest
code, particularly with -O4, but that it's very ANSI-picky and a lot
of my code won't compile with it, where as it will compile with `cc
-std'. I use `cc' for almost everything else. There appears to be a
sizable improvement in compiler performance from OSF/1 V1.2 to OSF/1
V2.0.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: simple command-line optimizations I can use?
1994-05-26 4:03 ` David B. Ritch
1994-05-27 15:35 ` Dirk Grunwald
@ 1994-05-27 16:22 ` Matthew Liggett
1 sibling, 0 replies; 6+ messages in thread
From: Matthew Liggett @ 1994-05-27 16:22 UTC (permalink / raw)
>>>>> "David" == David B Ritch <dbritch@descartes.super.org> writes:
David> For C code, you might want to try "gcc -O2". ;-) For most of
David> my applications, GNU C has produced faster executables.
David> However, version 2.5.8 has a problem with local arrays longer
David> than about 32k elements - the compiler dumps core. Versions
David> 2.5.6 and 2.5.7 do not share this problem.
Sorry I missed the first half of this thread; are you saying that gcc
generally creates faster executables than DEC's C compiler? This is of
extremem importance.
--
matt liggett '59 Austin Mini 850 (If only it ran...)
(mliggett@indiana.edu) '75 Suzuki GT250 (Mutant Chainsaw)
-= GAT =- '79 Honda Civic 1200 (Rust Never Sleeps)
d-- -p+ c++(+++) l++ u++ e+ m* s--/ n+(---) h-- f- !g w++ t+ r(-) y++(*)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1994-05-27 16:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-23 17:56 simple command-line optimizations I can use? Chester Liu
1994-05-23 18:59 ` John R. Reagan
1994-05-24 2:16 ` John Hascall
1994-05-26 4:03 ` David B. Ritch
1994-05-27 15:35 ` Dirk Grunwald
1994-05-27 16:22 ` Matthew Liggett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox