* Use cc OR gcc?
@ 2002-01-12 3:22 bbmarkz
2002-01-12 10:23 ` Tobias Ernst
0 siblings, 1 reply; 2+ messages in thread
From: bbmarkz @ 2002-01-12 3:22 UTC (permalink / raw)
Quick philosophy question:
Background: I'm brining up an Apache Web Server for our workgroup (~30
people) on our older Alpha 2000 (4/233) which is currently running OSF
4.0F....Because we would also like to use scripting with db backend, php
and mysql seem like good choices.
I built gcc 2.95-3 since mysql needs c++, so now the question is, for
the rest of the open source applications (apache, php, etc.)
Should I:
A. first, try to use cc (Compaq) and only use gcc when cc fails?
or
B. Use gcc (Compaq) in favor of cc for building the open source tools?
I've built most of the packages already using strategy "A", but one of
the non-standard apache modules refused to build with cc, so I use gcc
for the pieces which cc had a hard time with. I can't get the mod to
function properly, so before I spend hours figuring it out, I am
thinking that the mod (built with gcc) and apache (built with cc) might
not be a good combination....
Appreciate thoughts.
-bb
^ permalink raw reply [flat|nested] 2+ messages in thread
* Use cc OR gcc?
2002-01-12 3:22 Use cc OR gcc? bbmarkz
@ 2002-01-12 10:23 ` Tobias Ernst
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Ernst @ 2002-01-12 10:23 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-12 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-12 3:22 Use cc OR gcc? bbmarkz
2002-01-12 10:23 ` Tobias Ernst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox