Operating System - HP-UX
1838636 Members
2659 Online
110128 Solutions
New Discussion

Re: HP-UX 64-bit 'C' compiler options

 
rajesh_65
Occasional Advisor

HP-UX 64-bit 'C' compiler options

Hi,

We have HP-UX 64-bit machine with the following specifications.

HP-UX B.11.11 U 9000/800 (- uname)
getconf KERNEL_BITS =64

We want to know how to list the verbose options for the C- comipler installed in /usr/bin/cc

Example -
92453-07 linker linker ld B.11.36 030403

Please let us know asap.
Thanks & Regards.
rajesh
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: HP-UX 64-bit 'C' compiler options


You don't.

live free or die
harry d brown jr
Live Free or Die
Steve Steel
Honored Contributor

Re: HP-UX 64-bit 'C' compiler options

Harry is correct


what /usr/bin/cc
chatr /usr/bin/cc

give a little info

see
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2504,00.html


For compilers info

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: HP-UX 64-bit 'C' compiler options

man 1 cc

gives you all of the options.

live free or die
harry d brown jr
Live Free or Die
rajesh_65
Occasional Advisor

Re: HP-UX 64-bit 'C' compiler options

Hi,

We have generated the output of "what /usr/bin/cc" command on two different systems and following is the summary:

1) HP92453-01 A.11.01.21 HP C (Bundled) Compiler

2) 92453-07 linker linker ld B.11.36 030403

Are both the SAME compilers?

Can we use them interchangably?

Please let us know.

Thanks & Regards
Rajesh
H.Merijn Brand (procura
Honored Contributor

Re: HP-UX 64-bit 'C' compiler options

1) is the braindead almost useless non-ANSI compliant HP bundled C compiler.

2) is the linker. The linker/loader is not a compiler. The linker/loader is used to glue all the objects created with compilers together to a runnable executable (program).

They are /related/ but are used completely independently. 2) can be used to link objects generated by different compilers (HP bundled cc, HP C-ANSI-C, HP aCC, GNU gcc, pascal, fortran, ...) but it still cannot glue different architectures (pa-risc v.s itanium, 32bit vs 64 bit), at least no on pa-risc architectures.

When you are running on a Itanium 2 system, there rules are much looser, and libraries are provided that allow much more.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn