Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Current Standard C Compiler?

Tags:

c

turbo-c

I wanted to know what is the current standard C compiler being used by companies. I know of the following compilers and don't understand which one to use for learning purposes.

  1. Turbo C
  2. Borland C
  3. GCC
  4. DJGPP

I am learning C right now and referring to the K&R book.

Can anyone please guide me to which compiler to use?

like image 205
name_masked Avatar asked Nov 09 '10 00:11

name_masked


People also ask

What is the latest C compiler?

The current version of GCC is 9.2, which was released on August 12, 2019.

Is there an official C compiler?

No, there is no compiler provided by the C standard and thus no way to install it. You have to use a third-party compiler. The most common for Linux and macOS are called GCC (GNU Compiler Collection) and Clang.

Which is the latest C standard?

C17 is the informal name for ISO/IEC 9899:2018, the most recent standard for the C programming language, prepared in 2017 and published in June 2018. It replaced C11 (standard ISO/IEC 9899:2011). C17 will be superseded by C2x.

Is C++20 officially released?

C++20 is a version of the ISO/IEC 14882 standard for the C++ programming language. C++20 replaced the prior version of the C++ standard, called C++17. The standard was technically finalized by WG21 at the meeting in Prague in February 2020, approved on 4 September 2020, and published in December 2020.


2 Answers

GCC would be the standard, best supported and fastest open source compiler used by most (sane) people.

like image 121
Jacob Relkin Avatar answered Sep 28 '22 09:09

Jacob Relkin


GCC is going to have the best support of the choices you've listed for the simple reason that it comes standard in GNU and is the target of Linux. It's very unlikely any organization would use the other three beyond possibly supporting some horrible legacy application.

Other C compilers you might look into include:

  • Clang: an up-and-comer, particularly for BSD and Mac OS X
  • Visual Studio Express: for Windows programming
  • Intel Compiler Suite: very high performance; costs money
  • Portland Group: another high-performance commercial compiler; used typically for supercomputers
  • PathScale: yet another commercial high-performance compiler
like image 35
chrisaycock Avatar answered Sep 28 '22 11:09

chrisaycock