Operating System - HP-UX
1836604 Members
1867 Online
110102 Solutions
New Discussion

Re: How to know the type of compiler

 
Anand_30
Regular Advisor

How to know the type of compiler

I want to know if there is any way to find out what compiler is installed in a HP UX machine. Normally we find out the type of the compiler from the Makefile but if the type is not mentioned in the makefile, how else can we obtain the type of the compiler.

Regards,
Anand.
3 REPLIES 3
Umapathy S
Honored Contributor

Re: How to know the type of compiler

Anand,
Pardon me. I am not understanding your question correctly. What do you mean by type of the compiler. For C/C++ or Java?

-Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Leif Halvarsson_2
Honored Contributor

Re: How to know the type of compiler

Hi,
I am notsure I have understand you correct but if you want to know what is installed (compilers or anything), try the swlist command.
A. Clay Stephenson
Acclaimed Contributor

Re: How to know the type of compiler

You don't seem very clear on how makes works. For example, suppose that a file 'myfile.c' exists in the current directory. Simply a 'make myfile' will actually try to compile and link a myfile executable by using the default suffix transformation rules --- without even the presence of a makefile.

You can invoke make with the -p to display all of these default rules.

To determine the compilers available on your box, do a swlist. At the very least, you will have the bundled c compiler but it's not a serious development tool and is really only intended to be used to build kernels.
If it ain't broke, I can fix that.