Talk:Cleveland Street scandal and Intel C++ Compiler: Difference between pages

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Difference between pages)
Content deleted Content added
Coordinate for the article
 
 
Line 1: Line 1:
{{Advert|date=March 2008}}
{{ArticleHistory
|action1=PR
|action1date=13:30, 20 July 2008
|action1link=Wikipedia:Peer review/Cleveland Street scandal/archive1
|action1result=reviewed
|action1oldid=226045439


'''Intel C++ Compiler''' (also known as '''icc''' or '''icl''') describes a group of [[C (programming language)|C]]/[[C++]] [[compiler]]s from [[Intel Corporation|Intel]]. Compilers are available for [[Linux]], [[Microsoft Windows]] and [[Mac OS X]].
|action2=FAC
|action2date=03:08, 29 September 2008
|action2link=Wikipedia:Featured article candidates/Cleveland Street scandal
|action2result=promoted
|action2oldid=241161661


Intel supports compilation for its [[IA-32]], [[Intel 64]], [[Itanium 2]], and [[XScale]] processors. The Intel C++ Compiler for x86 and Intel 64 features an automatic vectorizer that can generate [[Streaming SIMD Extensions|SSE]], [[SSE2]], and [[SSE3]] [[SIMD]] instructions, the [[embedded system|embedded]] variant for [[MMX (instruction set)|Intel Wireless MMX and MMX 2]].<ref>A. J. C. Bik, ''The Software Vectorization Handbook'' (Intel Press, Hillsboro, OR, 2004), ISBN 0974364924.</ref> Since its introduction, the Intel C++ Compiler for [[IA-32]] has greatly increased adoption of SSE2 in Windows application development.{{Fact|date=August 2008}}
|currentstatus=FA
|maindate=October 10, 2008
}}
{{LGBTProject|class=FA|old-peer-review=yes}}


Intel C++ Compiler further supports both [[OpenMP]] and [[automatic parallelization]] for [[symmetric multiprocessing]]. With the add-on product ''Cluster OpenMP'', the compiler can also automatically generate [[Message Passing Interface]] calls for [[distributed memory]] [[multiprocessing]] from OpenMP directives.
==Coordinate==

Should this article have a coordinate for 19 Cleveland Street? If so then based on multimap, the following template would do the trick: <nowiki>{{coord|51|31|08|N|0|08|14|W|region:GB_type:landmark|display=title}}</nowiki>. I'd argue that the article should contain a coordinate, since being able to click onto a map helps to locate the geographical locus of the scandal - it was here: {{coord|51|31|08|N|0|08|14|W|region:GB_type:landmark|display=inline}}. Set against that is the risk that multimap's 2008 conception of the location of no.19 does not marry with 1889. --[[User:Tagishsimon|Tagishsimon]] [[User_talk:Tagishsimon|(talk)]] 02:45, 10 October 2008 (UTC)
Intel C++ Compiler belongs to the family of compilers with the [[Edison Design Group]] frontend (like the [[SGI]] [[MIPSpro]], [[Comeau C++]], [[Portland Group]], and others). The compiler is also notable for being widely used for [[Standard Performance Evaluation Corporation|SPEC CPU]] Benchmarks of [[IA-32]], [[x86-64]], and [[Itanium 2]] architectures.

== Optimizations ==

Intel tunes its compilers to optimize for its hardware platforms to minimize stalls and to produce code that executes in the smallest number of cycles. The Intel C++ Compiler supports three separate high-level techniques for optimizing the compiled program: [[interprocedural optimization]] (IPO), profile-guided optimization (PGO),<ref>[http://www.nersc.gov/vendor_docs/intel/f_ug2/pgo_ovw.htm Profile-guided Optimizations Overview]</ref> and high-level optimizations (HLO).

Profile-guided optimization refers to a mode of optimization where the compiler is able to access data from a sample run of the program across a representative input set. The data would indicate which areas of the program are executed more frequently, and which areas are executed less frequently. All optimizations benefit from profile-guided feedback because they are less reliant on heuristics when making compilation decisions.

High-level optimizations are optimizations performed on a version of the program that more closely represents the source code. This includes loop interchange, loop fusion, loop unrolling, loop distribution, data prefetch, and more.<ref>http://www.ncsa.uiuc.edu/UserInfo/Resources/Software/Intel/Compilers/8.1/ug/lin1063.htm</ref> These optimizations are usually very aggressive and may take considerable compilation time.{{Fact|date=September 2008}}

Interprocedural optimization applies typical compiler optimizations (such as constant propagation) but using a broader scope that may include multiple procedures, multiple files, or the entire program.<ref>[http://www.intel.com/cd/software/products/asmo-na/eng/compilers/277618.htm Intel® C++ Compiler 10.1 for Linux*]</ref>

== Languages ==

Intel's suite of compilers has front ends for [[C (programming language)|C]], [[C++]], and [[Fortran]].

Early versions of ICC for Linux that predate [[GNU Compiler Collection|GCC]] 3.x use the [[Dinkumware]] [[name mangling]] scheme in order to provide a more standard implementation of C++ than GCC 2.x. However, this makes its [[Application binary interface|ABI]] incompatible with both GCC versions.

== Architectures ==
* [[IA-32]]
* [[x86-64]] ([[Intel 64]] and [[AMD64]])
* [[IA-64]] i.e. the "[[Itanium]]"
* [[XScale]]

== Versions ==

The following versions of Intel C++ Compiler have been released:

{| class="wikitable"
! Compiler version
! Release date
! Major New Features
|-
| Intel C++ Compiler 10.1 || [[Nov 7]] [[2007]]|| New OpenMP* compatibility runtime library: if you use the new OpenMP RTL, you can mix and match with libraries and objects built by Visual C++. To use the new libraries, you need to use the new option "-Qopenmp /Qopenmp-lib:compat" on Windows, and "-openmp -openmp-lib:compat" on Linux. This version of the Intel compiler supports more intrinsics from [[Visual Studio]] 2005.
VS2008 support - command line only right now. The IDE integration is not supported yet.<ref name=autogenerated1>[http://www.intel.com/software/products/compilers/docs/clin/Release_Notes.htm Intel(R) C++ Compiler 10.1 for Linux* Release Notes<!-- Bot generated title -->]</ref>
|-
| Intel C++ Compiler 10.0 || [[June 5]] [[2007]]<ref>[http://www.intel.com/pressroom/archive/releases/20070605comp_a.htm New Intel Products Simplify and Speed Software Development for Multi-Core Processors<!-- Bot generated title -->]</ref> || Improved parallelizer and vectorizer, Streaming SIMD Extensions 4 ([[SSE4]]), new and enhanced optimization reports for advanced loop transformations, new optimized exception handling implementation.<ref name=autogenerated1 />
|-
| Intel C++ Compiler 9.0 || [[June 14]] [[2005]]<ref>[http://www.intel.com/pressroom/archive/releases/20050614comp.htm New Intel Software Tools Unlock Potential of Multi-Core Platforms<!-- Bot generated title -->]</ref> || [[AMD64]] architecture (for Windows), software-based speculative pre-computation (SSP) optimization, improved loop optimization reports.<ref>http://www.intel.com/cd/software/products/asmo-na/eng/compilers/clin/219333.htm</ref><ref>http://www.intel.com/cd/software/products/asmo-na/eng/compilers/cwin/219335.htm</ref>
|-
| Intel C++ Compiler 8.1 || ? || [[AMD64]] architecture (for Linux).<ref>[ftp://download.intel.com/support/performancetools/c/linux/sb/clin81_relnotes.pdf Intel&#174; C++ Compiler 8.1 for Linux Release Notes<!-- Bot generated title -->]</ref><ref>[http://download.intel.com/support/performancetools/c/windows/sb/cwin81_relnotes.pdf Intel&#174; C++ Compiler 8.1 for Windows* Release Notes<!-- Bot generated title -->]</ref>
|-
| Intel C++ Compiler 8.0 || [[December 15]] [[2003]]<ref>[http://developers.slashdot.org/article.pl?sid=03/12/15/0010248 Slashdot | Intel C/C++ Compiler 8.0 Released<!-- Bot generated title -->]</ref> || Precompiled headers, code-coverage tools. [ftp://download.intel.com/support/performancetools/c/linux/v8/c8lin_relnotes.pdf]
|-
| Intel C++ Compiler 7.1 || ? || Partial support for the Intel [[Pentium 4]] with Streaming SIMD Extensions 3 ([[SSE3]]). [ftp://download.intel.com/support/performancetools/c/linux/v7/c71Lin_relnotes.pdf]
|-
| Intel C++ Compiler 7.0 || [[November 25]] [[2002]]<ref>[http://developers.slashdot.org/article.pl?sid=02/11/25/1559231 Slashdot | New Intel Compiler Released<!-- Bot generated title -->]</ref> || [ftp://download.intel.com/support/performancetools/c/linux/v7/c71Lin_relnotes.pdf]
|-
| Intel C++ Compiler 6.0 || [[April 24]] [[2002]]<ref>[http://developers.slashdot.org/article.pl?sid=02/04/24/1214213 Slashdot | Intel Releases V6.0 Compiler Suite<!-- Bot generated title -->]</ref> || [ftp://download.intel.com/support/performancetools/c/linux/v6/c_ug_lnx60.pdf]
|-
|}

Experimental / Prototype Versions

In addition, the following "prototype" editions have been made available:
{| class="wikitable"
! Compiler version
! Release date
! Major New Features
|-
| Intel STM Compiler Prototype Edition|| [[September 17]] [[2007]]<ref>[http://www.intel.com/pressroom/kits/events/idffall%5F2007 PRESS KIT - Intel Developer Forum<!-- Bot generated title -->]</ref> || Prototype version of the Intel compiler that implements support for [[Software Transactional Memory]] (STM). The Intel STM Compiler supports Linux and Windows, producing 32 bit code for x86 (Intel and AMD) processors. Intel stated the belief that "The availability of such a prototype compiler allows unprecedented exploration by C / C++ software developers of a promising technique to make programming for multi-core easier." The STM compiler requires that you already have the Intel compiler installed.
|-
|}

== Flags and manuals ==

{| class="wikitable"
|-
! Windows
! Linux
! Comment
|-
| <tt>/Od</tt>
| <tt>-O0</tt>
| No optimization
|-
| <tt>/O1</tt>
| <tt>-O1</tt>
| Optimize for size
|-
| <tt>/O2</tt>
| <tt>-O2</tt>
| Optimize for speed and enable some optimization
|-
| <tt>/O3</tt>
| <tt>-O3</tt>
| Enable all optimizations as O2, and intensive loop optimizations
|-
| <tt>/QxO</tt>
| <tt>-xO</tt>
| Enables SSE3, SSE2 and SSE instruction sets optimizations for non-Intel CPUs
|-
| <tt>/fast</tt>
| <tt>-fast</tt>
| Shorthand. On [[Microsoft Windows|Windows]] this equates to "<tt>/O3 /Qipo /xT /no-prec-div</tt>" , and on [[Linux]] "<tt>-O3 -ipo -static -xT -no-prec-div</tt>". Note that the processor specific optimizations (-xT) will change with new compiler versions.
|-
| <tt>/Qprof_gen</tt>
| <tt>-prof_gen</tt>
| Compile the program and instrument it for a profile generating run.
|-
| <tt>/Qprof_use</tt>
| <tt>-prof_use</tt>
| May only be used after running a program that was previously compiled using <tt>prof_gen</tt>. Uses profile information during each step of the compilation process.
|}

== Debugging ==

The Intel compiler provides debugging information that is standard for the common debuggers ([[DWARF|DWARF 2]] on Linux, similar to [[gdb]], and [[COFF]] for Windows). The flags to compile with debugging information are <tt>/Zi</tt> on Windows and <tt>-g</tt> on Linux.

Intel also provides its own [[debugger]] called ''idb'', which can be run in both [[dbx]] and gdb compatible command mode.

While the Intel compiler can generate a gprof compatible [[profiler (computer science)|profiling]] output, Intel also provides a kernel level, system-wide statistical profiler as a separate product called VTune. VTune features an easy-to-use GUI (integrated into [[Visual Studio]] for Windows, [[Eclipse (software)|Eclipse]] for Linux) as well as a command line interface.

== References ==

{{reflist|2}}

== External links ==
* [http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284132.htm Intel Compilers]

[[Category:C++ compilers]]
[[Category:C compilers]]

[[bg:Intel C++ Compiler]]
[[cs:Překladač Intel C++]]
[[de:Intel C++ Compiler]]
[[fr:Intel C++ Compiler]]
[[ja:Intel C++ Compiler]]
[[pt:Intel C++ Compiler]]
[[ru:Intel C++ compiler]]

Revision as of 23:31, 10 October 2008

Intel C++ Compiler (also known as icc or icl) describes a group of C/C++ compilers from Intel. Compilers are available for Linux, Microsoft Windows and Mac OS X.

Intel supports compilation for its IA-32, Intel 64, Itanium 2, and XScale processors. The Intel C++ Compiler for x86 and Intel 64 features an automatic vectorizer that can generate SSE, SSE2, and SSE3 SIMD instructions, the embedded variant for Intel Wireless MMX and MMX 2.[1] Since its introduction, the Intel C++ Compiler for IA-32 has greatly increased adoption of SSE2 in Windows application development.[citation needed]

Intel C++ Compiler further supports both OpenMP and automatic parallelization for symmetric multiprocessing. With the add-on product Cluster OpenMP, the compiler can also automatically generate Message Passing Interface calls for distributed memory multiprocessing from OpenMP directives.

Intel C++ Compiler belongs to the family of compilers with the Edison Design Group frontend (like the SGI MIPSpro, Comeau C++, Portland Group, and others). The compiler is also notable for being widely used for SPEC CPU Benchmarks of IA-32, x86-64, and Itanium 2 architectures.

Optimizations

Intel tunes its compilers to optimize for its hardware platforms to minimize stalls and to produce code that executes in the smallest number of cycles. The Intel C++ Compiler supports three separate high-level techniques for optimizing the compiled program: interprocedural optimization (IPO), profile-guided optimization (PGO),[2] and high-level optimizations (HLO).

Profile-guided optimization refers to a mode of optimization where the compiler is able to access data from a sample run of the program across a representative input set. The data would indicate which areas of the program are executed more frequently, and which areas are executed less frequently. All optimizations benefit from profile-guided feedback because they are less reliant on heuristics when making compilation decisions.

High-level optimizations are optimizations performed on a version of the program that more closely represents the source code. This includes loop interchange, loop fusion, loop unrolling, loop distribution, data prefetch, and more.[3] These optimizations are usually very aggressive and may take considerable compilation time.[citation needed]

Interprocedural optimization applies typical compiler optimizations (such as constant propagation) but using a broader scope that may include multiple procedures, multiple files, or the entire program.[4]

Languages

Intel's suite of compilers has front ends for C, C++, and Fortran.

Early versions of ICC for Linux that predate GCC 3.x use the Dinkumware name mangling scheme in order to provide a more standard implementation of C++ than GCC 2.x. However, this makes its ABI incompatible with both GCC versions.

Architectures

Versions

The following versions of Intel C++ Compiler have been released:

Compiler version Release date Major New Features
Intel C++ Compiler 10.1 Nov 7 2007 New OpenMP* compatibility runtime library: if you use the new OpenMP RTL, you can mix and match with libraries and objects built by Visual C++. To use the new libraries, you need to use the new option "-Qopenmp /Qopenmp-lib:compat" on Windows, and "-openmp -openmp-lib:compat" on Linux. This version of the Intel compiler supports more intrinsics from Visual Studio 2005.

VS2008 support - command line only right now. The IDE integration is not supported yet.[5]

Intel C++ Compiler 10.0 June 5 2007[6] Improved parallelizer and vectorizer, Streaming SIMD Extensions 4 (SSE4), new and enhanced optimization reports for advanced loop transformations, new optimized exception handling implementation.[5]
Intel C++ Compiler 9.0 June 14 2005[7] AMD64 architecture (for Windows), software-based speculative pre-computation (SSP) optimization, improved loop optimization reports.[8][9]
Intel C++ Compiler 8.1 ? AMD64 architecture (for Linux).[10][11]
Intel C++ Compiler 8.0 December 15 2003[12] Precompiled headers, code-coverage tools. [1]
Intel C++ Compiler 7.1 ? Partial support for the Intel Pentium 4 with Streaming SIMD Extensions 3 (SSE3). [2]
Intel C++ Compiler 7.0 November 25 2002[13] [3]
Intel C++ Compiler 6.0 April 24 2002[14] [4]

Experimental / Prototype Versions

In addition, the following "prototype" editions have been made available:

Compiler version Release date Major New Features
Intel STM Compiler Prototype Edition September 17 2007[15] Prototype version of the Intel compiler that implements support for Software Transactional Memory (STM). The Intel STM Compiler supports Linux and Windows, producing 32 bit code for x86 (Intel and AMD) processors. Intel stated the belief that "The availability of such a prototype compiler allows unprecedented exploration by C / C++ software developers of a promising technique to make programming for multi-core easier." The STM compiler requires that you already have the Intel compiler installed.

Flags and manuals

Windows Linux Comment
/Od -O0 No optimization
/O1 -O1 Optimize for size
/O2 -O2 Optimize for speed and enable some optimization
/O3 -O3 Enable all optimizations as O2, and intensive loop optimizations
/QxO -xO Enables SSE3, SSE2 and SSE instruction sets optimizations for non-Intel CPUs
/fast -fast Shorthand. On Windows this equates to "/O3 /Qipo /xT /no-prec-div" , and on Linux "-O3 -ipo -static -xT -no-prec-div". Note that the processor specific optimizations (-xT) will change with new compiler versions.
/Qprof_gen -prof_gen Compile the program and instrument it for a profile generating run.
/Qprof_use -prof_use May only be used after running a program that was previously compiled using prof_gen. Uses profile information during each step of the compilation process.

Debugging

The Intel compiler provides debugging information that is standard for the common debuggers (DWARF 2 on Linux, similar to gdb, and COFF for Windows). The flags to compile with debugging information are /Zi on Windows and -g on Linux.

Intel also provides its own debugger called idb, which can be run in both dbx and gdb compatible command mode.

While the Intel compiler can generate a gprof compatible profiling output, Intel also provides a kernel level, system-wide statistical profiler as a separate product called VTune. VTune features an easy-to-use GUI (integrated into Visual Studio for Windows, Eclipse for Linux) as well as a command line interface.

References

External links