DevOps

15 Best Free and Open Source Linux Compilers

A compiler is software that transforms source code written in a computer language (the source language) into another computer language (the target language, often having a binary form known as object code).

Typically, a programmer writes language statements in a language such as C or C++ using an editor. The programmer then runs the appropriate language compiler, which analyzes the language statements and turns them into machine code that the processor can execute.

Many coders learn to code using a text editor but in time they move towards using an Integrated Development Environment (IDE) as this type of software application makes the art of coding quicker and more efficient. For example, IDEs have semantic knowledge of the programming language which highlights coding problems while typing. Compiling is ‘on the fly’ and debugging is integrated. Our article titled 26 Best Free and Open Source Linux IDEs selects the best Linux IDEs.

The GNU Compiler Collection (which includes C, C++, Objective-C, Fortran, and Ada compilers) is one of the most important tools for the creation of free software, and naturally takes pride of place in this article. However, Linux has a diverse range of other compilers available, many of which are released under freely distributable licenses.

To provide an insight into the quality of software that is available, we have compiled a list of 15 top free Linux compilers. Hopefully, there will be something of interest here for anyone who wants to transform source code into another computer language. Here’s our verdict captured in a legendary LinuxLinks-style ratings chart. They are all open source software.

Ratings chart

Click the links in the table below to learn all about each compiler.

Compilers
GNU Compiler CollectionThe standard compiler for most Unix-like operating systems
rustcCompiler for the Rust programming language
AOCCAMD Optimizing C/C++ Compiler
LLVMLow-Level Virtual Machine (LLVM) compiler for C/C++
ispcIntel SPMD Program Compiler
Glasgow Haskell CompilerAn optimizing compiler for Haskell, written in Haskell
ClangC Language Family Frontend for LLVM
BabelJavaScript compiler - use next generation JavaScript
NuitkaOptimizing Python compiler
CHICKENCompiler for the Scheme programming language
FreeBASIC32-bit BASIC compiler
NumbaCompiler for Python array and numerical functions
Free PascalAdvanced Pascal compiler for Pascal and Object Pascal
NASMAssembler for the x86 CPU architecture
BiglooPractical Scheme compiler

This article has been revamped in line with our recent announcement.

Best Free and Open Source SoftwareRead our complete collection of recommended free and open source software. Our curated compilation covers all categories of software.

The software collection forms part of our series of informative articles for Linux enthusiasts. There are hundreds of in-depth reviews, open source alternatives to proprietary software from large corporations like Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

There are also fun things to try, hardware, free programming books and tutorials, and much more.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Please read our Comment FAQ before posting a comment.

5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
wpeckham
wpeckham
4 years ago

I might have included V or V-lang. It is remarkably fast, results in faster execution code, and surprisingly complete.

Harry James
Harry James
4 years ago
Reply to  wpeckham

V is far too niche.

Zwoho
Zwoho
3 years ago
Reply to  Harry James

Which V are you thinking about? Because I think he meant vlang.io. At least 26.000 people have seen it. As seen on the stars of the github repo.

THOMAS J MUNN
THOMAS J MUNN
4 years ago

what about MUSL?

Jacob R
Jacob R
4 years ago
Reply to  THOMAS J MUNN

Not sure what you’re referring to, as musl is a C standard library implementation.