Operating System - HP-UX
1754283 Members
2879 Online
108813 Solutions
New Discussion

gcc/g++ and CC/cc optimization on hp-ux 10.20

 
SOLVED
Go to solution
Lars Bylander
Frequent Advisor

gcc/g++ and CC/cc optimization on hp-ux 10.20

I have a simulation code that I would like
to compile for best possible speed
peformance. Can anyone suggest suiteable
flags & parameters to use?

Compilers used are:
gcc/g++ version 2.95.2
cc: LINT A.10.32.30 CXREF A.10.32.30
HP92453-01 A.10.32.30 HP C Compiler
/usr/lib/libc: $Revision: 76.3
CC: HP C++ HPCPLUSPLUS A.10.27

Targets are:
B1000 and B180.
1 REPLY 1
Stefan Farrelly
Honored Contributor
Solution

Re: gcc/g++ and CC/cc optimization on hp-ux 10.20


Try these options for good performance using the HP C compiler;

options +DA and +DS
ie for a d330 node use +DA813 +DSD330 for a PA2.0 use +DA2.0

DA =3D Generate code for a particular version of the PA-RISC = architecture specified. DS =3D Use the instruction scheduler tuned to the model specified.

You'll need to use the HP Ansi/C compiler, the GNU compiler hasn't been optimized
for PA 2.0 yet.
Im from Palmerston North, New Zealand, but somehow ended up in London...