Operating System - HP-UX
1753602 Members
5672 Online
108797 Solutions
New Discussion юеВ

Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

 
SOLVED
Go to solution
Gd2
Advisor

Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

Hello All,

Hoping you can help me out here. I have very old C applications which are running on HP-UX 11.0 (9000/800/L3000-8x). Out of these applications, one does not have source code. I need to port them to Itanium (ia64 hp server rx6600).

1) For the application without source code, I believe I have to go through the Aries emulator route .. is that correct?

2) For the rest of the applications with source code - should I recompile them or should I run them on Aries? If recompilation is an option.. is there some pointers I need to be wary of (example compiler flags/constructs etc).

Would greatly appreciate your help.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

Hi:

1) Yes, Aries is correct. See the 'ARIES(5)" manpages for more information too.

2) Aries allows you to avoid recompilation until you are ready assuming your code isn't kernel-intrusive and meets some limitations. Performance may vary. Again, the manpages for 'ARIES(5)' will provide a quick overview.

More details can be found at the "Knowledge-on-Demand" subsite -- click the "+" icon just above the topic you want here:

http://h71028.www7.hp.com/enterprise/w1/en/os/hpux11i-kod-overview.html

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

>should I recompile them or should I run them on Aries?

It depends whether performance is important.

Also, if you haven't recompiled in N years, if you don't do it now, you may never be able to do in the future?

>is there some pointers I need to be wary of (example compiler flags/constructs etc).

What version of aCC6 do you have?

The default in A.06.25 is C99. If you have K&R code, you may have problems.

There are new options like +wlint and +check= that can help with quality.

Basically, just start compiling.
+DA options need to be removed.
The man page lists other deprecated options.
Gd2
Advisor

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

Thanks a lot Dennis and JRF. Your responses are very helpful.

@Dennis -

Iam using A.11.00.00 HP C Compiler c89.

The code is developed long back...I cannot confirm with conviction if its 64 bit compatible.. but I do assume it is compatible as it has been running well in HP-UX 11.0 (9000/800/L3000-8x) PA RISC. I hope its a valid assumption. Is there any way to know it ?

I would believe from your response that the way to go is to compiler it in IA64 (with quality and portability flags) and fix errors as they come. Since I have to test the migration in a short timeframe, I was also wondering if there is a way to compile it in IA64 using -AP rather than -AA and run through Aries? Performance is not really a concern.

Please advise.
Dennis Handly
Acclaimed Contributor
Solution

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

>I cannot confirm with conviction if it's 64 bit compatible.

It doesn't need to be. Integrity, with HP-UX software smoke and mirrors, is perfectly happy to run 32 bit applications.

>Is there any way to know it?

Only by compiling and running tests. Basically just try it.

>I was also wondering if there is a way to compile it in IA64 using -AP rather than -AA and run through Aries?

(-AP & -AA are aC++ library modes, not C.)
And if you compile on Integrity, you don't use Aries.
Gd2
Advisor

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

Thank you Dennis. Your responses have been very helpful.
Torsten.
Acclaimed Contributor

Re: Porting C applications on HP-UX 11.0 (9000/800/L3000-8x) to Itanium (ia64 hp server rx6600)

This could be a solution too:


http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?jumpid=reg_R1002_USEN&ciid=ee6fffc7e55ab210VgnVCM200000a460ea10RCRD

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!