Operating System - Linux
1752577 Members
4741 Online
108788 Solutions
New Discussion

aCC -AP & AA compiler flags

 
sharathkv25
Frequent Advisor

aCC -AP & AA compiler flags

Hi,

We're on HP-UX B.11.11 U 9000/785.

I read in the documentation that:

"aC++ on HP-UX 11i v1 uses the default compiler option –AP.

To share same code on Itanium platform which support HP-UX v2, we need to change compiler option to –AA."

My question is:

1) I searched all Makefiles & could not find -AP option anywhere. If nothing is explicitly given, does it mean the compiler uses -AP option?

2) For Itanium, do we have to explicity add -AA in the Makefile?

Thanks
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: aCC -AP & AA compiler flags

What version of aC++ do you have? The latest documents -AP:
http://www.docs.hp.com/en/7762/5991-4874/options.htm#opt-AP

-AP is the PA default.

>To share same code on Integrity servers which support HP-UX 11.23, we need to change compiler option to -AA."

You could use conditional compilation to compile with -AP on PA and -AA on IPF.

Note changing to -AA on PA would have problems if you are depending on any third party aC++ libs, which may not be available with -AA.

>2) For Integrity, do we have to explicitly add -AA in the Makefile?

Yes, that makes it much clearer. (And the default is only almost -AA.)

To port to -AA see:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5520,00.html

sharathkv25
Frequent Advisor

Re: aCC -AP & AA compiler flags

Thanks for the reply, we're using

aCC: HP ANSI C++ B3910B A.03.33