Operating System - HP-UX
1832911 Members
2670 Online
110048 Solutions
New Discussion

Re: C compiler compatible

 
jirawat jarutitipun
Occasional Contributor

C compiler compatible

Please advice about the C compiler (ansi C s800) compatible between HP-UX itanium and HP-UX pa-risc,because when I complied program
on PA-RISC no problem but Itanium has warning(same program).

Thank you.
3 REPLIES 3
Kyle Martin
Occasional Advisor

Re: C compiler compatible

I am fairly confident that your version of ANSI C for PA-RISC is incompatible with Itanium.
Foremost, PA-RISC supports 11.0 and 11iv1 (11.11)
Itanium supports 11iv1.5, 11iv1.6 and 11iv2.
They are completely different OS's. The version of ANSI C is usually OS specific.

Hope this helps!
Elmar P. Kolkman
Honored Contributor

Re: C compiler compatible

Ansi-C compilers should be compatibel, but some aren't. Also, it depends on the kind of compiler you use. For instance, some C instructions will have different results with different number of bits. Differences like these can be the reason of your warnings.

Other causes might be different branches in include files that are accessed, depending on CPU type.

So, it might help if you post some of these warnings to let us see if they can be caused by things like these.
Every problem has at least one solution. Only some solutions are harder to find.
Manish Srivastava
Trusted Contributor

Re: C compiler compatible

Hi,

Firstly both the com;ilers are different. PA compiler is a bit lenient but the IA compiler is a bit strict. The same program which compiles fine on PA may give warnings on IA. Just have a look at the warning most probably it is a valid one. There is no compatibility question as an ANSI comiler has to comply to the ANSI standards.

manish