Operating System - HP-UX
1825766 Members
2172 Online
109687 Solutions
New Discussion

PA RISC1.1 PARISC 2.0 Architecture

 
Srinivasan S_1
Advisor

PA RISC1.1 PARISC 2.0 Architecture

Hi,
We have an application that interfaces with MQ Series which is PA RISC1.1.

But target OS is PA RISC 2.0 type. So kindly confirm,

a) I think PA RISC1.1 shared Library cannot go hand in with hand PARISC 2.0 ? ( may be silly question,I different architecture cannot go hand in hand ) Is that right ?
b) If we need to run both in PA RISC 1.1 and RISC 2.0 we can use DA Portable to do the same right ?

TIA.

With Regards,
Srinivasan S
5 REPLIES 5
Stephen Keane
Honored Contributor

Re: PA RISC1.1 PARISC 2.0 Architecture

PA RISC1.1 is 32-bit, PA RISC 2.0 is 64-bit. You can run a 32-bit app on a 64-bit machine, but not the other way around.
A. Clay Stephenson
Acclaimed Contributor

Re: PA RISC1.1 PARISC 2.0 Architecture

Actually, the PA-RISC 1.1 code will run perfectly well on PA-RISC 2.0 platforms but the converse is not true. +DAPortable code will run on all machines. By default, the model the compiler is that of the machine on which it is compiled; you override this behavior by using +DAPortable on natibe DA 2.0 machines to produce code that will will anywhere.
If it ain't broke, I can fix that.
Srinivasan S_1
Advisor

Re: PA RISC1.1 PARISC 2.0 Architecture

Thanks Stephen Keane/A. Clay Stephenson,

I thought +DD64 alone will make it 64 Bit application. But even changing +DA2.0 also make it 64 Bit is something new info for me.

Is that so ?

I shall read the literature further more.

Thanks anyway.

With Regards,
Srinivasan S
A. Clay Stephenson
Acclaimed Contributor

Re: PA RISC1.1 PARISC 2.0 Architecture

All +DAPortable and +DA1.1 code is both PA-RISC 1.1 code and uses 32-bit pointers. The PA 1.x instruction set is a subset of the PA 2.x instruction set. It is possible to select the 32-bit data model (+DA2.0) and the PA-RISC 2.0 instruction set; if you use +DA2.0W (same as +DD64) then you select both the PA 2.0 instruction set and the 64-bit data model.

create a very simple c program, eg, "my.c"

cc +DA2.0 my.c -o my2
file my2

cc +DA2.0W my.c -o my2W
file my2W

cc +DAportable my.c -o my1
file my1

You will see that each of these produces a different instruction set/data model combination but only the +DAportable (or +DA1.1) will run on both 32-bit and 64-bit machines.
If it ain't broke, I can fix that.
Ted Buis
Honored Contributor

Re: PA RISC1.1 PARISC 2.0 Architecture

Isn't there also a +DS1.1 and DS2.0 options to optimize for instruction sequencing for the two versions?
Mom 6