Operating System - HP-UX
1833420 Members
3456 Online
110052 Solutions
New Discussion

HPUX PARISC Compilers/Cross-Compilers

 
SOLVED
Go to solution
Warren Glore_1
Occasional Contributor

HPUX PARISC Compilers/Cross-Compilers

My company has a software product that we are currently compiling on an HP-UX PARISC system. We are planning to start compiling the same software for the IA64 platform. Is there any PARISC compilers that would cross-compile packages for the IA64 environment. If so, where can this be obtained?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: HPUX PARISC Compilers/Cross-Compilers

HP's ansi C and C++ compilers work on HP-UX on the PA-Risc and Itanium 64 bit platforms. If your program is in C or C++ that would work.

Also, many of the gcc series of compilers from GNU will work on both platforms producing binaries for both platforms.

The first paragraph of products have to be licensed. The second paragraph are GPL.

If you state what compiler you use, I could be more helpful.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor
Solution

Re: HPUX PARISC Compilers/Cross-Compilers

If you have an application that was compiled on PA, it will run fine on IA64 with some performance compromises. If you need a cross compiler, you need to download GCC source from http://www.gnu.org/software/gcc/gcc.html and start building a Cross compiler. It will be a taunting task though ;), Good luck

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ted Buis
Honored Contributor

Re: HPUX PARISC Compilers/Cross-Compilers

As I remember it, to cross-compile you needed some extra libraries. These could be found via the dspp site. I think I found the link at:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2548,00.html
Mom 6
Warren Glore_1
Occasional Contributor

Re: HPUX PARISC Compilers/Cross-Compilers

Would a cross-compiler on an IA64 system also be able to cross-compile to both the IA64 and to the PARISC systems?
H.Merijn Brand (procura
Honored Contributor

Re: HPUX PARISC Compilers/Cross-Compilers

Yes, but I would not try so

For IA64, you only need one compiler that can generate 32bit or 64bit objects

It will be possible, though pretty hard, to make a cross compiler run on IA64, and generate pa-risc code, but remember that 32bit and 64bit do not mix on pa-risc, so the compiler can probably be confused very easy

If you have access to both machines, life gets much less complicated, and good working (free) gcc ports are widely available for both

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Zygmunt Krawczyk
Honored Contributor

Re: HPUX PARISC Compilers/Cross-Compilers

Hi Warren,

HP's ANSI C and ANSI C++ are separate compilers on PARISC and IA64. You can't generate IA64 code on PARISC compiler and vs. I recommend to join to HP DSPP program ( look at www.hp.com/dspp ). For DSPP program participians these compilers are for free.

Regards,
Zygmunt