Operating System - HP-UX
1834087 Members
2382 Online
110063 Solutions
New Discussion

ACC compiler for CPU performance

 
SOLVED
Go to solution
j773303
Super Advisor

ACC compiler for CPU performance

Does anybody has the experince about how to improve CPU performance in hpux rx2600? I has written C++ program man I'm not sure how to compiler codes, may I know which compiler option can enhance CPU performance? Thanks.
Hero
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: ACC compiler for CPU performance

I assume that you have turned on the maximum optimization and enabled parallel operations. You really are much too vague about your problem for anyone to help you much. It would help to at least know what your application is in general terms.

In general, compilers are so good now that you don't normally have to worry about these things but I'm sure there are exceptions.

It's time to add profiling
to your code to see where it's spending the most time. It's been my experience that in almost all cases, poor performance has little to do with the compiler and much to do with the efficiency of the algorithms.
If it ain't broke, I can fix that.
rick jones
Honored Contributor

Re: ACC compiler for CPU performance

As pointed-out - profiles. For example, such as are produced by say Caliper. Higher levels of optimizations would include things like PBO - Profile Based Optimization. You might find some ideas in the compiler options used for some of the components of HP's SPECcpu2000 numbers. I believe that a few of the components of SPECint2000 are C++ and perhaps they do things similar to your application.
there is no rest for the wicked yet the virtuous have no pillows