Operating System - HP-UX
1753563 Members
5781 Online
108796 Solutions
New Discussion

[Acc flag] What is the difference?

 
sohochaser1
Occasional Advisor

[Acc flag] What is the difference?

Hi All,
I use aCC 6.15 to compile under Hp titanium.

There exist flag -AA and -Aa. I am not very clear about the difference.

From the man page,
-AA: Turns on newly supported ANSI C++ Standard features. <<<< This option also implies -Aa.>>

-Aa: For aC++, turns on newly supported ANSI C++ Standard features like Koenig lookup and correct scoping...

So my questions are:

1. If I use AA, there is no necessary to use -Aa?

2. When shall i use -Aa not -AA? Is there any comparability issue?

Thank you in advance.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: [aCC flag] What is the difference?

>1. If I use -AA, there is no necessary to use -Aa?

No, -Aa was made for -AP. Or with -AC89 or -AC99.

>2. When shall I use -Aa not -AA? Is there any comparability issue?

Since the default is almost -AA, -Aa can still be used but being explicit with -AA is better. And -Aa can be used with -AP, -AC89 or -AC99.