From: tobi@bland.fido.de (Tobias Ernst)
Subject: Use cc OR gcc?
Date: Sat, 12 Jan 2002 11:23:46 MEZ [thread overview]
Message-ID: <1010834552@p15.f1.n7600.z242.fido.de> (raw)
In-Reply-To: 3C3FAC42.70903@MAPSONnetscape.net
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
prev parent reply other threads:[~2002-01-12 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-12 3:22 Use cc OR gcc? bbmarkz
2002-01-12 10:23 ` Tobias Ernst [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox