Info on PA-RISC processors

Here is bit of insight to versions of PA-RISC architecture. There are three versions of PA-RISC processors 1.0(32 bit), 1.1(32 bit) and 2.0(64 bit). Following link provides more information on all three versions of PA-RISC.

Now, how can we find the version of processor in any machine?

Open SAM -> Performance Monitors -> System Properties . This provides information on CPU version. From the CPU version information and above link, version of PA-RISC on any system can be figured out.

Binaries built on PA-RISC 2.0, will not work on other PA-RISC version. In order to make it compatible with other PA-RISC versions, compiler flag +DAportable need to be added while building. There are other +DA i.e. +DA1.1 +DA867 +DA2.0 +DAportable flags which can be added during compilation. The first two examples generate code for the PA-RISC 1.1 architecture, third generate’s code for the PA-RISC 2.0 architecture and fourth generates code compatible for all 1.1 and 2.0.

cc -o test +DD1.1 test.c — test binary will work only on PA-RISC 1.1 version
cc -o test +DAportable test.c — test binary will work only on all PA-RISC versions


This entry was posted in C Section. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s