Operating System - HP-UX
1755051 Members
3345 Online
108829 Solutions
New Discussion юеВ

Re: Compiling on 11 to run on 10.2 and 11

 
SOLVED
Go to solution
Trevor Dyson
Trusted Contributor

Compiling on 11 to run on 10.2 and 11

Hi Folks,

I need to know if it is possible to compile C code on HP-UX 11.0 such that the compiled binary will work on both HP-UX 11 and 10.20. If so then what are the compiler options?

(Its a real bummer not having the forum search facility working!)

Thanks in advance - Trevor
I've got a little black book with me poems in
2 REPLIES 2
Andreas Voss
Honored Contributor
Solution

Re: Compiling on 11 to run on 10.2 and 11

Hi,

i don't know if this works but with the cc option:
+DAportable
you can compile for working on both PA-RISC1 and PA-RISC2.
Generally i would say that compiling on 11.00 and running on 10.20 could be produce problems wether compiling on 10.20 and running on 11.00 is supported.

Regards
rick jones
Honored Contributor

Re: Compiling on 11 to run on 10.2 and 11

Compiling on 11 and running on 10.20 is not supported and unlikely to work. HP has never supported such reverse compatability. You can compile on 10.20 and run on 11 though.

+DAportable only controls the revision of PA from which instructions are selected - it will cause a PA 1.1 binary to be created. That means (modulo the above) the binary can be run on a PA 1.1 or PA 2.0 CPU.
there is no rest for the wicked yet the virtuous have no pillows