Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intel standard library (C++)

Tags:

c++

std

stl

intel

Does the Intel compiler have its own standard library, e.g., implementations of std::cout etc. I want to adjust everything for Intel.

like image 476
Shibli Avatar asked Feb 05 '12 18:02

Shibli


People also ask

Is the C standard library written in C?

In a typical case, the C standard library is written primarily in C, and the C++ standard library primarily in C++. To give some concrete numbers, Microsoft's standard library has ~1050 C and C++ files, and 37 assembly language files.

Does C++ have standard library?

The C++ Standard Library provides several generic containers, functions to use and manipulate these containers, function objects, generic strings and streams (including interactive and file I/O), support for some language features, and functions for everyday tasks such as finding the square root of a number.

What is in the standard library C++?

The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators. It is a generalized library and so, its components are parameterized.

How many C++ standard libraries are there?

C++ comes with two standard libraries: the old C library (libc. lib), and the new C++ library (libcp. lib), which is logically divided into the stream library, and STL, the standard template library.


1 Answers

Until version 8, ICC shipped with Dinkumware, i.e. the standard library implementation that also ships with Microsoft Visual Studio:

The Intel C++ Compiler for Windows uses the Microsoft Visual C++ header files, libraries and linker. Microsoft controls the header files that define the namespace.

  • Source: "General compatibility of the Intel C++ Compiler for Windows", Intel

However, as of version 8.1

-cxxlib-gcc Is Now the Default for C++
The STL and gcc* C++ libraries are now used by default when linking C++ applications, rather than those from Dinkumware* used in previous releases. If you wish to use the Dinkumware libraries, specify the new switch -cxxlib-icc. In a future release of the Intel C++ Compiler, support for using the Dinkumware libraries will be removed.

  • Source: "Intel® C++ Compiler 8.1 for Linux Release Notes", Intel

By "STL and gcc C++ libraries" one can only assume that they are referring to libstdc++.

  • So, does ICC ship with a standard library implementation? Yes.
  • Does it ship with a library implemented by Intel? No.
like image 110
Lightness Races in Orbit Avatar answered Oct 19 '22 12:10

Lightness Races in Orbit