Operating System - HP-UX
1847575 Members
3341 Online
110265 Solutions
New Discussion

Are +u and +z still valid options in aCC version A.05.50?

 
SOLVED
Go to solution
Charles_126
Occasional Contributor

Are +u and +z still valid options in aCC version A.05.50?

I can find no reference to these options in the aCC man page nor are they in the Online Documentation (http://docs.hp.com/hpux/onlinedocs/4310/options.htm).

Yet, they are referred to in the "Programmer's Guide for Java 2, JNI section as being necessary.

I would prefer not to use them because it would change the build scripts we have been using.

Thanks for your help.

charlie
5 REPLIES 5
Mike Stroyan
Honored Contributor

Re: Are +u and +z still valid options in aCC version A.05.50?

The +u4 option is still valid in aCC A.05.55.
It continues to appear in "man aCC".

The +z option is really always on for the IPF versions of aCC. It requests position-independent code for use in shared libraries. aCC does that by default. It ignores the option.
Charles_126
Occasional Contributor

Re: Are +u and +z still valid options in aCC version A.05.50?

Thanks for the +z info. That helps.

I looked in the aCC version A.05.550 man page yet again for the +unum option and still cannot find it. I can find +ub and +uc options but these cannot possibly be providing the same functionality as +unum. And it's definitely not in the Online Documentation.

Are there different versions of the documentation perhaps? Can you point me to the man page number that you find it at?

charlie
Mike Stroyan
Honored Contributor
Solution

Re: Are +u and +z still valid options in aCC version A.05.50?

I find it in "man aCC" using the /opt/aCC/share/man/man1.Z/aCC.1 manual page.
It is just before the +ub option.
I will attach the output of "man aCC | col -b".

+unum Allow pointers to access non-natively aligned data.
This option alters the way that the compiler accesses
dereferenced data. Use of this option may reduce the
efficiency of generated code. (See also #pragma pack
in the HP aC++ Online Programmer's Guide for a more
efficient method.)
1 Assume single byte alignment. Dereferences are
performed with a series of single-byte loads
and stores.
2 Dereferences are performed with a series of
two-byte loads and stores.
4 Dereferences are performed with a series of
four-byte loads and stores.


Charles_126
Occasional Contributor

Re: Are +u and +z still valid options in aCC version A.05.50?

Thanks Mike. We are definitely looking at different man pages as the one I am using has the +tls option prior to the +ub option.

The man pages I am using have a header on each page that looks like this:
Hewlett-Packard Company - 12 - aC++/C Version A.05.50

As well when I enter:
aCC -V
the result is:
aCC: HP aC++/ANSI C B3910B A.05.50 [May 15 2003]

Are these the same versions that you have?

charlie
Charles_126
Occasional Contributor

Re: Are +u and +z still valid options in aCC version A.05.50?

OK, I just noticed you had attached the entire man page. I looked at it and it *is* different from the man page we have here but it is for the same version.

Weird.

Thanks a lot for your help Mike.

charlie