Using the Intel® C++ Compiler
Using the Intel® C++ Compiler within Visual Studio*Create a Visual C++* project, or open an existing project.In Solution Explorer, select the project(s) to build with Intel® C++ Compiler.In Project>...
View ArticleExcluding Source Files from a Build
The following topic applies to Eclipse* for C/C++.To exclude a source file from a build:Right-click a file or folder in the Project Explorer.Select Resource Configurations> Exclude from build. The...
View ArticleUnderstanding File Extensions
Input File ExtensionsThe Intel® C++ Compiler recognizes input files with the extensions listed in the following table:File NameInterpretationActionfile.cC source filePassed to...
View ArticleWhy does the STL uses size_t and not ptrdiff_t for array indexing ?
Hi, Designing my own array class, I ended up using the ptrdiff_t type for array indexing. The fact that this type is signed make it safer for loops such asfor (ptrdiff_t k = 0; k < v.size() - 1;...
View ArticleD
Defines a macro name that can be associated with an optional value.SyntaxLinux OS and OS X:-Dname[=value]Windows OS:/Dname[=value]ArgumentsnameIs the name of the macro.valueIs an optional integer or an...
View ArticleQpchi
Enable precompiled header coexistence to reduce build time.SyntaxLinux OS and OS X:NoneWindows OS:/Qpchi/Qpchi-ArgumentsNoneDefaultONThe compiler enables precompiled header coexistence.DescriptionThis...
View Articlefsource-asm
Produces an assembly listing with source code annotations.SyntaxLinux OS and OS X:-fsource-asmWindows OS:NoneArgumentsNoneDefaultOFFNo source code annotations appear in the assembly listing file, if...
View ArticleFa
Specifies that an assembly listing file should be generated.SyntaxLinux OS and OS X:-Fa[filename|dir]Windows OS:/Fa[filename|dir]ArgumentsfilenameIs the name of the assembly listing file.dirIs the...
View Articlefinline-functions
Enables function inlining for single file compilation.SyntaxLinux OS and OS X:-finline-functions-fno-inline-functionsWindows OS:NoneArgumentsNoneDefault-finline-functionsInterprocedural optimizations...
View Articlefp-model, fp
Controls the semantics of floating-point calculations.SyntaxLinux OS and OS X:-fp-modelkeywordWindows OS:/fp:keywordArgumentskeywordSpecifies the semantics to be used. Possible values...
View Articleqopenmp-offload, Qopenmp-offload
Enables or disables OpenMP* offloading compilation for the target pragmas. This option only applies to Intel® MIC Architecture. Option -qopenmp-offload is the replacement option for -openmp-offload,...
View ArticleSpecifying Alternate Tools and Paths
Use the Qlocation option to specify an alternate path for a tool. This option accepts two arguments using the following syntax:Qlocation Syntax # (Linux* and OS X*)-Qlocation,tool,path #...
View ArticlePortability
Parent topic: Compatibility and PortabilityPorting from the Microsoft* Compiler to the Intel® C++ CompilerPorting from GCC* to the Intel® C++ CompilerUnderstanding the 64-bit Data Model used by OS...
View ArticleCreating and Using Build Specification Files
Static Analysis is a deprecated feature.Static Analysis is not supported on OS X* systems.If it is difficult to modify your build process to create a new build configuration, then you may need to...
View ArticlePGO Tools
Parent topic: Profile-Guided Optimization (PGO)PGO Tools Overviewprofmerge and proforder ToolsUsing Function Order Lists, Function Grouping, Function Ordering, and Data Ordering OptimizationsComparison...
View ArticleWorking with Enabled and Non-Enabled Modules
The pointer checker is not supported on OS X* systems.An enabled module is a module compiled with the pointer checker option enabled, while a non-enabled module is a module compiled with this compiler...
View ArticleOpenMP* Examples
The following examples show how to use several OpenMP* features.A Simple Difference OperatorThis example shows a simple parallel loop where the amount of work in each iteration is different. Dynamic...
View ArticleFast approximate of transcendental operations
Hi,You might know the "Carmack" trick to have a fast and crude approximation of 1/sqrt(x). It isfloat Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y...
View ArticleOptions: Guided Auto Parallelism dialog box
To access the Guided Auto Parallelism page, select Tools> Options> Intel Compilers and Tools> C++> Guided Auto Parallelism.Use the Guided Auto Parallelism page to specify settings for...
View ArticleUsing Guided Auto Parallelism in Visual Studio*
The Guided Auto Parallelism (GAP) feature helps you locate portions of your serial code that can be parallelized. When you enable analysis using GAP, the compiler guides you to places in your code...
View Article