C++

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.
Not to be confused with the C programming language.
Not to be confused with the C# programming language.


C++ isa general-purpose programming language that originated from C and was developed by Bjarne Stroustrup at Bell Labs in the early 1980s. Known for its efficiency and flexibility, C++ supports both procedural and object-oriented programming paradigms, making it suitable for a wide range of applications.

Compilers

Several compilers are commonly used for C++ development:

1. GCC (GNU Compiler Collection): An open-source compiler suite known for portability and widely used on Unix-based systems.

2. Clang: An open-source compiler developed by the LLVM project, known for fast compilation and modular architecture.

3. Microsoft Visual C++: Provided by Microsoft as part of the Visual Studio IDE, widely used for Windows development.

4. Intel C++ Compiler: Optimized for Intel processors, known for performance optimizations.

C++ Standards

C++ has undergone several standardization efforts:

  • C++98: The initial standardized version. (ISO/IEC 14882:1998)
  • C++03: An incremental update addressing issues and adding features.
  • C++11: Major update introducing auto type, lambda expressions, and more.
  • C++14: Incremental update with bug fixes and improvements.
  • C++17: Adds parallel algorithms, std::variant, and file system library.
  • C++20: Latest major update, introducing concepts, ranges, and coroutines.
  • C++23: Latest finalized version, introducing static operator, new ranges functions, new preprocessor, and more.

See also

  • Assembly language — the lowest level of all programming languages, typically represented as a series of CPU architecture specific mnemonics and related operands.
  • C — a programming language developed for Bell Labs in the early 1970s
  • Forth — a heavily stack-oriented self-compiling procedural programming language that is only slightly more abstract than assembly.
  • Rust — a general-purpose, multi-paradigm, compiled, programming language.
  • Zig — a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software.