Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cc & gcc

Status
Not open for further replies.

nappaji

Programmer
Mar 21, 2001
76
US
Does any one know what's the major difference between using cc & gcc.

I used it on a program on a HP-UX machine and it gave me different results. cc worked but gcc did not.

Probably it has something to do with byte boundaries...

Any input is greatly appreciated..
 
Run
cc -v
and
gcc -v

and compare version information. I know that gcc is the GNU c compiler, CC is maybe something else, that'll tell you.

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
I had no problems with gcc. Just pay more attention to gcc compilation options. Be sure you set all properly.
What I have found that gcc works MUCH MORE SLOWER in 10 or more times that vendor compiler with c++.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top