The world’s most popular Free software program and the best portable compiler has made available a release candidate for GCC 4.0 version.In related news, Fedora Core 4 scheduled for release on June 6th is the first Linux distribution planned to ship with GCC 4.0 and also has rebuild nearly all of the programs within the Fedora Project to work with the latest compiler.
It also has native versions of Eclipse, Tomcat amoung several Java programs to be natively compiled with GCJ (GNU compiler for Java).
Wasn’t GCC 4.0 bundled with Tiger goldmaster a few weeks ago or is this version after that?
http://developer.apple.com/macosx/tiger/
Do a search for gcc in the body of website.
Is GCC used to compile Firefox source ?
I think they recommended Visual C++ 6. Not sure about Cygwin or Mingw32 .
Anyways , it would be nice if this compiler could compete with Intels compiler for their chips.
“Anyways , it would be nice if this compiler could compete with Intels compiler for their chips”
From my experience commercial compliers made by the hardware manufacturer results in the best results. Seems like their
staff of computer engineers have first hand knowledge on making
their compliers run the best on their hardware. GCC is a good cross
platform complier, but if speed is what you need then it pays to
fork over money for a commercial complier.
eg.
Intel C++ and Fortran Compilers
IBM XL C/C++ and XL Fortran
SGI MipsPro compliers
Didn’t the new Ubuntu Linux ship with gcc4? It is compiled with gcc 3.x, but I belive gcc4 is on the CD.
Both Ubuntu Hoary and live version use gcc3.4. I am currently writing from Fedora Core 4 Test 2 which actually uses gcc4.
$yum info gcc
Setting up repositories
Reading repository metadata in from local files
Installed Packages
Name : gcc
Arch : i386
Version: 4.0.0
Release: 0.42
Size : 4.3 M
Repo : installed
Summary: The GNU cc and gcc C compilers.
Description:
The gcc package includes the cc and gcc GNU compilers for compiling C
code.
AFAIK what Apple calls GCC 4.0 differs, because it has their own patches that are not in the main tree (yet). But it’s still 4.0 .
Ubuntu’s Hoary shipped with GCC 3.4.3… perhaps there’s an option package to install 4?
Its in “Universe” as gcj-4.0
Sorry typed too fast.
GCJ/GIJ 4 are in the Ubuntu repos but GCC4 is not.
Several problems were identified, and there will be a respin. But that’s what release candidates are for.
The original target date for 4.0.0 was April 15, but it will be delayed for a bit.
”
Is GCC used to compile Firefox source ?
I think they recommended Visual C++ 6. Not sure about Cygwin or Mingw32 .
Anyways , it would be nice if this compiler could compete with Intels compiler for their chips.
”
Nope, Cygwin is required to build the Firefox source code.
I’ve been using gcc 4.0 in the dev releases of 10.4 and it is _really_ nice. Apple has done a very good job on it and I expect all the patches to hit mainstream just as soon as 10.4 is released. I have to say it again, I am really impressed in the code it spits out the other end.
I’ve been using gcc 4.0 in the dev releases of 10.4 and it is _really_ nice. Apple has done a very good job on it and I expect all the patches to hit mainstream just as soon as 10.4 is released. I have to say it again, I am really impressed in the code it spits out the other end.
gcc in tiger will be based on the main GCC 4.0 code stream from some
few weeks ago. However it contins extensive patches by apple realted to
ObjectiveC++ as well as auto-vectorization and code generation for the
PowerPC platform overall. Thus you should note take the code generated
by it as a measure of what GCC 4.0 will provide.
“Nope, Cygwin is required to build the Firefox source code.”
required to build, but MS C/C++ is used to compile.
“This document is a guide to building Mozilla on Windows platforms. The Windows build uses a UNIX emulator for Windows, cygwin, to control the build process, and command line tools from Microsoft’s Visual C++ to build its source files. Mozilla uses a variety of tools and scripting languages during its build process, including makefiles, shell scripts, xpidl and perl scripts. ”
From http://www.mozilla.org/build/win32.html
MSVC is the default and recommended compiler, but gcc can be used instead.
Does anyone know (I couldn’t find any reference) if Objective C++ support has been added?
Well, I found this. I haven’t heard anything else, though, so I’m not 100% sure.
http://gcc.gnu.org/wiki/What will be in 4.0
In addition, the GCC Steering Committee has promised Apple (Zem Laski) that we will get Objective-C++ into GCC 4.0. Therefore, GCC 4.0 will not be released without Objective-C++, unless something seems to have gone horribly awry.
Sorry about the link. This should work:
http://gcc.gnu.org/wiki/What%20will%20be%20in%204.0
what is new in the 4.0 serie?
/me using gcc 3.4 for h8 reneasas microntroller.
I’m going to check what’s new for 4.0
The reasons I use GCC are:
1) cross-platform, even if i’m running it on linux
2) I can write C++ code
3) It costs zero
4) The code generated doesn’t seem to me slower than my previous commerical version
p.s.
The commercial version I used it run only under Windows, it costed 2000$, and it didn’t support C++.
http://gcc.gnu.org/gcc-4.0/changes.html
“The world’s most popular Free software program”
There’s a difference between popular and common…
Does this mean we can get Safari for linux?
Much more of AWT and Swing exist.
Why would you need safari for linux, when you have konqueror?
Apple submits patches to khtml back, i beleive.
> Apple submits patches to khtml back, i beleive.
As far as I know Apple released a big bunch of changes to khtml, but they are not cooperating with the khtml people to integrate these back into konqueror.
-Richard
Man, I really hope this is finally gonna happen!
Thanks for the information Matt and Andrea
As far as I know Apple released a big bunch of changes to khtml, but they are not cooperating with the khtml people to integrate these back into konqueror.
News Flash – Apple is under no obligation to hold kthml/konqueror developers hands when and if they integrate kthml changes back into konqueror and the library itself. Apple has no use for konqueror so why should they.
Just before anyone gets too excited, 4.0 is a step *backwards* in performance for 32 bit / x86 systems. Yep. It’s optimized for 64 bit systems with a lot more registers than Intel’s handicapped design has ever had.
Basically if you have a RISC chip or a 64 bit chip with extended registers (such as AMD-64), you will get potentially large dividends, and if you don’t… less performance.
I’m hoping they will solve the performance puzzle in a point release.
We all believe that you’re a GCC/compiler expert, but would you care to share some references?
4.0 is a step *backwards* in performance for 32 bit / x86 systems.
Where did you see that? Template heavy C++ code (like KDE) should at least be faster with the new -visiblity options.
Lots of proof for what I said. Just go to the GCC mailing lists and google up some tests. They’re out there.
C++ support in 4.0 is a big step forward as Matt said. However I’ve had some difficulty using the full spectrum of visibility features, at least on Gentoo. They were backported by the Gentoo team to 3.4.x, which may be part of the issue.
And yes, I’ve tested many releases of GCC on my systems over the years.
Oh, ok. so you couldn’t dig up any references. That’s ok. We still believe you.
ok, then what is better ? Is this release a “make c++ better everything else slower” one ? (serious question, I have no problem in believing this is the truth)
actually, this release is “get the new tree-ssa infrastructure integrated, and port as many of the old code optimizations to the new infrastructure as we can”
tree-ssa will enable the development of many many more optimizations than were reasonably possible with the old infrastructure.
>>As far as I know Apple released a big bunch of changes >>to khtml, but they are not cooperating with the khtml >>people to integrate these back into konqueror.
> News Flash – Apple is under no obligation to hold >kthml/konqueror developers hands when and if they >integrate kthml changes back into konqueror and the >library itself. Apple has no use for konqueror so why >should they.
No one said they were obliged to do so. That they do not help with integrating was just stated as a fact.
And the advantage to contributing would be that they maintain less of a seprerate branch and can use KDE-KHTML bugfixes.