Famed open-source compiler gets a face lift

NEWS
The foundation of the open-source movement has just shifted. On Monday, programmers released version 3.0 of GCC , a software project not as well-known as open-source projects such as Linux but one that's key to all of them. GCC is a compiler -- the critical software that converts programs written by humans into instructions a chip can understand. GCC is used to create everything from Linux and its various BSD Unix cousins to higher-level software such as the Apache Web server, the Gnome user interface and the Jabber instant-messaging software. And it can run on and create software for more than 40 different chip families. When Eric Allman was creating his open-source Sendmail e-mail server software about a decade ago, GCC was just one of a collection of compilers he had to support to make sure his software could run on a large number of computers. "I was using a lot of compilers, and GCC was one of them," he said. "At this point, GCC is so common you almost could use just GCC." But GCC isn't just for open-source projects -- the collaborative efforts in which developers share their programs without the secrecy of the proprietary world. Because the GCC design lets it create programs for dozens of different CPUs, it has been used to create the software for numerous proprietary systems as well. Indeed, GCC has spread as far as Microsoft, which ships the compiler as part of its Interix software, which enables Unix software to run on Windows computers. Version 3.0, under development for more than a year, adds several features. Among them is an improved ability to generate instructions for Intel's mainstream chips--work Intel has been funding for years. The software GCC produces for other chips is also improved. Among the new chips now supported are Intel's Itanium and XScale, Motorola's MCore 210 and 340, Mitsubishi's D30V, Atmel's AVR and Fujitsu's FR30, said Jeff Law, a GCC developer at Red Hat. The new version of GCC is the first major revamp since version 2.0 was released in February 1992. Since then, GCC has survived a problem that many consider to be one of the biggest threats to open-source software: code forking, in which two separate groups of programmers develop in different directions. GCC originally was a project begun by Free Software Foundation founder Richard Stallman. Version 1.0 was released in May 1987. GCC once stood for GNU C Compiler, since it was used to compile programs written in the C programming language for Stallman's "GNU's Not Unix " (GNU) effort to create a clone of Unix. Now, though, because GCC accepts programs written in many other languages as well, GCC stands for GNU Compiler Collection. Stallman created the concept of "free software"--which he defines not as no-cost, but as software that may be freely redistributed as long as its source code remains open. He released GCC under the General Public License, the license now used to cover many open-source efforts. Indeed, the Linux kernel that stepped in to become the heart of the GNU operating system project is released under the GPL. Much of GCC's development has been supported by Linux seller Red Hat, after its 1999 acquisition of Cygnus Solutions, a company whose business was adapting GCC so it could support new chips. Cygnus' first customers used GCC for proprietary systems such as network equipment, said Michael Tiemann, founder of Cygnus and now chief technology officer of Red Hat. Nortel was Cygnus' first major customer, in 1990. Intel joined later that year. Ericsson arrived in 1991, and Cisco Systems and Alcatel signed on in 1992, he said. Tiemann was an instrumental early developer of the compiler. He started with version 1.0 in 1987 and added several major new features to GCC, including the ability to run on the National Semiconductor 32032 chip and the ability to accept software written in the C++ language. Tiemann also worked on the translation of GCC to the Motorola 8800, Intel's 386 chips, MIPS chips, and Sun's Sparc chips. He also helped lay the groundwork for "very long instruction word" (VLIW) chips such as Intel's new Itanium. One of the criticisms of GCC is the fact that it is so general-purpose: being able to use it on so many chips with so many languages means it only produces mediocre software. But Tiemann defends GCC. In the process of figuring out how to get GCC to create software for so many different chips, GCC developers discovered improvements that apply to many different chips, Tiemann said. "Having the genetic material that spans across all these architectures in my opinion makes it a better compiler than any specific one," he said. For example, modifying GCC for chips from MIPS and Sun laid the groundwork for future Intel chips that followed those other designs. In addition, GCC has modules that optimize software for particular chips. "There are companies out there that are spending $50m or $100m on compiler development, and for a given arch, that may give them a leading position by some percentage," he said. "But in my opinion, the (ability) to support a wide range of microprocessors with a common compiler infrastructure and the ability to more rapidly adapt to microprocessors as they come out gives you better opportunity to take advantage of Moore's Law," the principle that chips double in power every 18 months. Cygnus, which was earning about $20m (£14m) in annual revenue at the time Red Hat acquired the company, had much of its success in "embedded" designs such as network routers and other communication equipment. Indeed, Intel's first funding of Cygnus was to create GCC support for Intel's now-defunct i960 communications processor. Now GCC is all over the computing landscape. "It became sort of the default compiler to use because it supports so many machines and so many platforms," Stallman said. "People wanted to be able to use the same compilers everywhere." While Tiemann was at Cygnus, his company gained powerful influence over GCC. The Free Software Foundation-appointed GCC maintainer, though, didn't have enough time to process all the changes to GCC, and because of disagreements over how to manage these changes, Cygnus decided in 1997 to create a new version of GCC called EGCS. Tiemann said that through EGCS, Cygnus showed it could maintain a heavy influence over GCC without letting its own motives shut out others' priorities. Eventually the rift was healed, in April 1999, when the Free Software Foundation agreed to use the EGCS code for GCC and the EGCS project agreed to dissolve itself and work instead on GCC. "It was a bloodless fork and a bloodless reunification," Tiemann said. Find out how the open-source movement is revolutionising the high-tech world at ZDNet UK's Linux Lounge. Have your say instantly, and see what others have said. Click on the TalkBack button and go to the Linux lounge forum Let the editors know what you think in the Mailroom. And read other letters.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

5 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

8 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

8 hours ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

9 hours ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

10 hours ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

11 hours ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

11 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

11 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

12 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

12 hours ago by ramwellian on Cloud computing security: no more oxymoron?
BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

12 hours ago by BugStalker on Windows 7 Declares War on GRUB
whs001

This is an excellent summary of Ubuntu and Mint and the interface differences between them. Most such articles take a very partisan position for...

12 hours ago by whs001 on A tale of two distros: Ubuntu and Linux Mint
Moley

@ewallace. Not so clear. Anyone can obtain the text, for example from here http://www.ustr.gov/webfm_send/2379. I support ACTA so long as it and...

13 hours ago by Moley on ACTA: Facts, misconceptions and questions
45283

I think WinRT is fantastic. I just wish it was an option for people that didn't want to go through Microsoft's App Store with its attendant...

16 hours ago by 45283 on Why Windows 8 needs architectural hygiene for WOA
Burn-IT

Nine people? £30m? Who's back pocket is that lot going in? And IF they say it is for new buildings, what about all the ones the government has...

17 hours ago by Burn-IT on Police set to launch three £30m e-crime hubs
ewallace

Just to be clear, nobody knows what is in the text of ACTA, here is a photograph of the text of ACTA http://twitpic.com/8h9iju as submitted to the...

17 hours ago by ewallace on ACTA: Facts, misconceptions and questions
fgvrg56

Unfortunately main issue is that ASUS is refusing to accept that they make some mistake on this version of asus Transformer prime. 1 - GPS sensor...

18 hours ago by fgvrg56 on Asus Eee Pad Transformer Prime Wi-Fi & GPS problems?
Ben Woods

@Marcus A fair question. Just talked with Archos which said it was working on an announcement for next week....

19 hours ago by Ben Woods on Archos confirms G9 Ice Cream Sandwich update schedule
Marcus Karlsson

Any update on this, considering the claimed "first week of February"?

20 hours ago by Marcus Karlsson via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

1 day ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility