Operating System - HP-UX
1846699 Members
3197 Online
110256 Solutions
New Discussion

C Compiler for 64-bit HP11.11 (superdome)

 
PAUL CHEN_2
Occasional Advisor

C Compiler for 64-bit HP11.11 (superdome)

We are migrating C code from 10.20 to 11.11 which is running on superdome. In the C code is referring va_list wihich is in the /usr/include/stdio.h. I don't know which parameters I should DEFINE in the makefile for Superdome, so C pre-process will recongize va_list, i.e., __hp9000s800, _PA_RISC1_0, during the compiling. Could I find the parameters/configuration from a file or command?
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: C Compiler for 64-bit HP11.11 (superdome)

Hi Paul:

I would set the +DA2.0W compiler flag. That should set the proper defines for you. In any event, the PA-8600 processors will definitely
understand PA_RISC_2 codesets.

Normally, if you are compiling on the target machines, the underlying target architecture is determing by the compiler automatically. Of course, if you are compiling on another machine to run on the Superdome, then for optimum execution set +DA2.0W.

Regards, Clay
If it ain't broke, I can fix that.
PAUL CHEN_2
Occasional Advisor

Re: C Compiler for 64-bit HP11.11 (superdome)

A Clay, It works. But I got the following errors:"/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (crp_po.o) was detect
ed. The linked output may not run on a PA 1.x system." It's weird I used /usr/bin/cc but the message saying I used "/usr/ccs/bin/ld"
A. Clay Stephenson
Acclaimed Contributor

Re: C Compiler for 64-bit HP11.11 (superdome)

Hi Paul:

That is perfectly normal. The warning just means that this will only run on PA-RISC2 processors (PA-8xxx and above). If you want to compile for a broader set of target environments, change to +DAportable. You will lose some efficiency, but in reality, the vast majority of applications that are written for UNIX are not CPU bound but rather are i/o bound.

If you just want to suppress the warnings,
you can set LDOPTS=+vnocompatwarnings and export this variable .

Man ld for details.


Regards, Clay
If it ain't broke, I can fix that.