From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,3b0331cde796dc1f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-12 02:36:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.wirehub.nl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!not-for-mail From: tobi@bland.fido.de (Tobias Ernst) Newsgroups: comp.unix.tru64 Subject: Use cc OR gcc? Date: Sat, 12 Jan 2002 11:23:46 MEZ Organization: Fido.De Host Baden-Wuerttemberg Message-ID: <1010834552@p15.f1.n7600.z242.fido.de> References: <3C3FAC42.70903@MAPSONnetscape.net> NNTP-Posting-Host: holmes.physcip.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Comment-To: bbmarkz X-MailConverter: SoupGate-Unix v1.42 Xref: archiver1.google.com comp.unix.tru64:6425 Hallo! b> Background: I'm brining up an Apache Web Server for our workgroup b> (~30 people) on our older Alpha 2000 (4/233) which is currently b> running OSF 4.0F....Because we would also like to use scripting b> with db b> backend, php and mysql seem like good choices. b> I built gcc 2.95-3 since mysql needs c++, so now the question is, b> for the rest of the open source applications (apache, php, etc.) b> Should I: b> A. first, try to use cc (Compaq) and only use gcc when cc fails? My vote for A. On Alpha, Compaq cc and cxx just generate so much faster code. Especially when you combine them with the "-O3" and "-arch host" options. Note, when you use "-arch host", the applications will be faster on the host on which you compile, but much slower, on any other host (i.E., other type of Alpha CPU). So "-arch host" is a no-go in a heterogenous environment, and if you use it, you should recompile when you upgrade the hardware. BTW, you say that mysql needs c++ - but there is also a C++ compiler from Compaq, namely cxx. Perhaps you should check if your company/institution has a license for that, or if you'd want to buy one? Of course, buying it only pays off if you want to compile more than just one c++ application. :-) b> function properly, so before I spend hours figuring it out, I am b> thinking that the mod (built with gcc) and apache (built with cc) b> might not be a good combination.... gcc and cc are link-compatible. I thing you would run into troubles if you wanted to mix code compiled with g++ with code compiled with cxx, because they realise C++-features in the object code format differently (but then, the application would not even link or crash right at start). But as long as only standard C and at maximum one of the two C++-compilers is involved, I don't know of any problems that could come up. I've often built libraries with cc, but applications with gcc, or vice versa. Viele Gr��e, Tobias