GCC and LLVM - What's in a licence?

Richard Hillesley discusses the pros and cons of the GCC and LLVM compiler collections, and the difference a licence makes.

Computer languages have standards, but the standards of computer languages are often fallible, especially when programmers find work arounds and short cuts. Every programmer who has ever compiled identical software on different compilers on different machines will know that there can be frustrating and inexplicable imperfections and inconsistencies between one machine and another, and one compiler and another.

In recent years the GCC developers have become sticklers for abiding by ANSI standards, although this wasn't always the case. Like most commercial compilers, a number of 'improvements' and extensions were written into the GCC C compiler. The difference was that GCC was portable across a wider range of architectures.

A common compiler simplifies these issues and ensures compatibility and portability across a range of platforms, and has ensured the continued and growing popularity of GCC, or so the theory goes. Cygnus Solutions, which was formed to promote free software in commercial environments and became part of Red Hat, made healthy revenues for many years as a consultancy and software forge for device manufacturers who wished to port GCC, as a C/C++ compiler, to new architectures and devices.

GCC and LLVM provide an easy route for the necessity to get a compiler working on a new device. Write to the language specifications of a common compiler and it becomes easier to overcome portability issues. A secondary benefit, from the point of view of advocates of free software, is that GCC has been a vehicle for spreading the idea of free software - and this notion has always been at the heart of GCC development.

Featured Resources

Consumer choice and the payment experience

A software provider's guide to getting, growing, and keeping customers

Download now

Prevent fraud and phishing attacks with DMARC

How to use domain-based message authentication, reporting, and conformance for email security

Download now

Business in the new economy landscape

How we coped with 2020 and looking ahead to a brighter 2021

Download now

How to increase cyber resilience within your organisation

Cyber resilience for dummies

Download now

Recommended

Trend Micro and Snyk team up to combat open source flaws
vulnerability

Trend Micro and Snyk team up to combat open source flaws

10 May 2021
Best Linux distros 2021
operating systems

Best Linux distros 2021

7 May 2021
Redis closes another round of funding, raking in an additional $110 million
open source

Redis closes another round of funding, raking in an additional $110 million

8 Apr 2021
Six things a developer should know about Postgres
Whitepaper

Six things a developer should know about Postgres

22 Mar 2021

Most Popular

How to find RAM speed, size and type
Laptops

How to find RAM speed, size and type

16 Jun 2021
Q&A: Enabling transformation
Sponsored

Q&A: Enabling transformation

10 Jun 2021
What is HTTP error 400 and how do you fix it?
Network & Internet

What is HTTP error 400 and how do you fix it?

16 Jun 2021