Skip to content

Commit 39debf8

Browse files
authored
Merge pull request #1926 from MicrosoftDocs/master
4/9/2019 AM Publish
2 parents 35c4b34 + 55ce141 commit 39debf8

14 files changed

+75
-75
lines changed

docs/build/reference/compiler-options-listed-alphabetically.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Compiler Options Listed Alphabetically"
3-
ms.date: "08/20/2018"
3+
ms.date: "04/08/2019"
44
helpviewer_keywords: ["compiler options, C++"]
55
---
66
# Compiler Options Listed Alphabetically
@@ -38,7 +38,7 @@ The following is a comprehensive alphabetical list of compiler options. For a ca
3838
|[/Fe](fe-name-exe-file.md)|Renames the executable file.|
3939
|[/FI](fi-name-forced-include-file.md)|Preprocesses the specified include file.|
4040
|[/Fi](fi-preprocess-output-file-name.md)|Sets the preprocessed output file name.|
41-
|[/Fm](fm-name-mapfile.md)|Creates a mapfile.|
41+
|[/Fm](fm-name-mapfile.md)|Creates a map file.|
4242
|[/Fo](fo-object-file-name.md)|Creates an object file.|
4343
|[/fp](fp-specify-floating-point-behavior.md)|Specify floating-point behavior.|
4444
|[/Fp](fp-name-dot-pch-file.md)|Specifies a precompiled header file name.|
@@ -53,7 +53,7 @@ The following is a comprehensive alphabetical list of compiler options. For a ca
5353
|[/GH](gh-enable-pexit-hook-function.md)|Calls hook function `_pexit`.|
5454
|[/Gh](gh-enable-penter-hook-function.md)|Calls hook function `_penter`.|
5555
|[/GL](gl-whole-program-optimization.md)|Enables whole program optimization.|
56-
|[/Gm](gm-enable-minimal-rebuild.md)|Enables minimal rebuild.|
56+
|[/Gm](gm-enable-minimal-rebuild.md)|Deprecated. Enables minimal rebuild.|
5757
|[/GR](gr-enable-run-time-type-information.md)|Enables run-time type information (RTTI).|
5858
|[/Gr](gd-gr-gv-gz-calling-convention.md)|Uses the `__fastcall` calling convention (x86 only).|
5959
|[/GS](gs-buffer-security-check.md)|Buffers security check.|
@@ -69,7 +69,7 @@ The following is a comprehensive alphabetical list of compiler options. For a ca
6969
|[/H](h-restrict-length-of-external-names.md)|Deprecated. Restricts the length of external (public) names.|
7070
|[/HELP](help-compiler-command-line-help.md)|Lists the compiler options.|
7171
|[/homeparams](homeparams-copy-register-parameters-to-stack.md)|Forces parameters passed in registers to be written to their locations on the stack upon function entry. This compiler option is only for the x64 compilers (native and cross compile).|
72-
|[/hotpatch](hotpatch-create-hotpatchable-image.md)|Creates a hotpatchable image.|
72+
|[/hotpatch](hotpatch-create-hotpatchable-image.md)|Creates a hot-patchable image.|
7373
|[/I](i-additional-include-directories.md)|Searches a directory for include files.|
7474
|[/J](j-default-char-type-is-unsigned.md)|Changes the default `char` type.|
7575
|[/JMC](jmc.md)|Supports native C++ Just My Code debugging.|
@@ -90,7 +90,7 @@ The following is a comprehensive alphabetical list of compiler options. For a ca
9090
|[/Od](od-disable-debug.md)|Disables optimization.|
9191
|[/Og](og-global-optimizations.md)|Deprecated. Uses global optimizations.|
9292
|[/Oi](oi-generate-intrinsic-functions.md)|Generates intrinsic functions.|
93-
|[/openmp](openmp-enable-openmp-2-0-support.md)|Enables [#pragma omp](../../preprocessor/omp.md) in source code.|
93+
|[/openmp](openmp-enable-openmp-2-0-support.md)|Enables the [`#pragma omp`](../../preprocessor/omp.md) directive in source code.|
9494
|[/Os](os-ot-favor-small-code-favor-fast-code.md)|Favors small code.|
9595
|[/Ot](os-ot-favor-small-code-favor-fast-code.md)|Favors fast code.|
9696
|[/Ox](ox-full-optimization.md)|Uses maximum optimization (/Ob2gity /Gs).|

docs/build/reference/fd-ide-minimal-rebuild.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "/FD (IDE Minimal Rebuild)"
3-
ms.date: "11/04/2016"
3+
ms.date: "04/08/2019"
44
f1_keywords: ["/FD"]
55
helpviewer_keywords: ["/FD compiler option [C++]", "-FD compiler option [C++]", "FD compiler option [C++]"]
66
ms.assetid: 7ef21b8c-a448-4bb4-9585-a2a870028e17
77
---
88
# /FD (IDE Minimal Rebuild)
99

10-
**/FD** is not exposed to users except in the [Command Line](command-line-property-pages.md) property page of a C++ project's **Property Pages** dialog box, if and only if [/Gm (Enable Minimal Rebuild)](gm-enable-minimal-rebuild.md) is not also selected. **/FD** has no effect other than from the development environment. **/FD** is not exposed in the output of **cl /?**.
10+
**/FD** is only exposed to users in the [Command Line](command-line-property-pages.md) property page of a C++ project's **Property Pages** dialog box. It's available if and only if the deprecated and off-by-default [/Gm (Enable Minimal Rebuild)](gm-enable-minimal-rebuild.md) option isn't selected. **/FD** has no effect other than from the development environment. **/FD** isn't exposed in the output of `cl /?`.
1111

12-
If you do not enable **/Gm** in the development environment, **/FD** will be used. **/FD** ensures that the .idb file has sufficient dependency information. **/FD** is only used by the development environment, and it should not be used from the command line or a build script.
12+
If you don't enable the deprecated **/Gm** option in the development environment, **/FD** is used. **/FD** ensures the .idb file has sufficient dependency information. **/FD** is only used by the development environment, and it shouldn't be used from the command line or a build script.
1313

1414
## See also
1515

docs/build/reference/file-types-created-for-visual-cpp-projects.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "File Types Created for Visual C++ Projects"
3-
ms.date: "11/04/2016"
3+
ms.date: "04/08/2019"
44
helpviewer_keywords: ["header files [C++], Visual Studio projects", "ActiveX controls [C++], Help files", "def files", "project items [C++], files", "Visual Studio C++ projects, files and directories", "resource files, created by wizard", "files [C++], extensions", "Help files, for ActiveX controls", "Web projects [C++], adding items", ".def files", "licensing ActiveX controls"]
55
ms.assetid: 2b0ee2e0-ae81-4185-9bb9-11da3c99a283
66
---
77
# File Types Created for Visual Studio C++ Projects
88

9-
This topic describes all the types of files that are associated with Visual Studio projects for classic desktop applications. The actual files included in your project depend on the project type and the options you select when using a wizard.
9+
Many types of files are associated with Visual Studio projects for classic desktop applications. The actual files included in your project depend on the project type and the options you select when using a wizard.
1010

1111
- [Project and Solution Files](project-and-solution-files.md)
1212

@@ -24,9 +24,9 @@ This topic describes all the types of files that are associated with Visual Stud
2424

2525
- [Hint Files](hint-files.md)
2626

27-
When you create a Visual Studio project, you might be creating a new solution, or you might be adding a project to a solution. Non-trivial applications are commonly developed with multiple projects in a solution.
27+
When you create a Visual Studio project, you might create it in a new solution, or you might add a project to an existing solution. Non-trivial applications are commonly developed with multiple projects in a solution.
2828

29-
Projects usually produce either an EXE or a DLL. Projects can be dependent on each other; during the build process, the Visual Studio environment checks dependencies both within and between projects. Each project has core source code, and depending on the kind of project, it may have many other files containing various aspects of the project. The contents of these files are indicated by the file extension. The Visual Studio development environment uses the file extensions to determine how to handle the file contents during a build.
29+
Projects usually produce either an EXE or a DLL. Projects can be dependent on each other; during the build process, the Visual Studio environment checks dependencies both within and between projects. Each project usually has core source code. Depending on the kind of project, it may have many other files containing various aspects of the project. The contents of these files are indicated by the file extension. The Visual Studio development environment uses the file extensions to determine how to handle the file contents during a build.
3030

3131
The following table shows common files in a Visual Studio project, and identifies them with their file extension.
3232

@@ -46,11 +46,11 @@ The following table shows common files in a Visual Studio project, and identifie
4646
|.htm, .html, .xsp, .asp, .htc, .hta, .xml|Resource|Common Web files.|
4747
|.HxC|Project|Help project file.|
4848
|.ico|Resource|Icon bitmap graphic file.|
49-
|.idb|Compiling|The state file, containing dependency information between source files and class definitions, which can be used by the compiler during minimal rebuild and incremental compilation. Use the [/Fd](fd-program-database-file-name.md) compiler option to specify the name of the .idb file. See [/Gm (Enable Minimal Rebuild)](gm-enable-minimal-rebuild.md) for more information.|
50-
|.idl|Compiling|An interface definition language file. See [Interface Definition (IDL) File](/windows/desktop/Rpc/the-interface-definition-language-idl-file) in the Windows SDK for more information.|
51-
|.ilk|Linking|Incremental link file. See [/INCREMENTAL](incremental-link-incrementally.md) for more information.|
52-
|.map|Linking|A text file containing linker information. Use the [/Fm](fm-name-mapfile.md) compiler option to name the map file. See [/MAP](map-generate-mapfile.md) for more information.|
53-
|.mfcribbon-ms|Resource|A resource file that contains the XML code that defines the buttons, controls, and attributes in the ribbon. For more information, see [Ribbon Designer (MFC)](../../mfc/ribbon-designer-mfc.md).|
49+
|.idb|Compiling|The state file, containing dependency information between source files and class definitions. It can be used by the compiler during incremental compilation. Use the [/Fd](fd-program-database-file-name.md) compiler option to specify the name of the .idb file.|
50+
|.idl|Compiling|An interface definition language file. For more information, see [Interface Definition (IDL) File](/windows/desktop/Rpc/the-interface-definition-language-idl-file) in the Windows SDK.|
51+
|.ilk|Linking|Incremental link file. For more information, see [/INCREMENTAL](incremental-link-incrementally.md).|
52+
|.map|Linking|A text file containing linker information. Use the [/Fm](fm-name-mapfile.md) compiler option to name the map file. For more information, see [/MAP](map-generate-mapfile.md).|
53+
|.mfcribbon-ms|Resource|A resource file that contains the XML code that defines the MFC buttons, controls, and attributes in the ribbon. For more information, see [Ribbon Designer](../../mfc/ribbon-designer-mfc.md).|
5454
|.obj, .o||Object files, compiled but not linked.|
5555
|.pch|Debug|Precompiled header file.|
5656
|.rc, .rc2|Resource|[Resource script files](../../windows/working-with-resource-files.md) to generate resources.|
@@ -61,18 +61,18 @@ The following table shows common files in a Visual Studio project, and identifie
6161
|.vap|Project|A Visual Studio Analyzer project file.|
6262
|.vbg|Solution|A compatible project group file.|
6363
|.vbp, .vip, .vbproj|Project|The Visual Basic project file.|
64-
|.vcxitems|Project|Shared Items project for sharing code files between multiple C++ projects. See [Project and Solution Files](project-and-solution-files.md) for more information.|
65-
|.vcxproj|Project|The Visual Studio project file. See [Project and Solution Files](project-and-solution-files.md) for more information.|
66-
|.vcxproj.filters|Project|When Solution Explorer is used to add a file to a project, the filters file defines where in the Solution Explorer tree view the file is added, based on its file name extension.|
64+
|.vcxitems|Project|Shared Items project for sharing code files between multiple C++ projects. For more information, see [Project and Solution Files](project-and-solution-files.md).|
65+
|.vcxproj|Project|The Visual Studio project file. For more information, see [Project and Solution Files](project-and-solution-files.md).|
66+
|.vcxproj.filters|Project|Used when you use Solution Explorer to add a file to a project. The filters file defines where in the Solution Explorer tree view to add the file, based on its file name extension.|
6767
|.vdproj|Project|The Visual Studio deployment project file.|
6868
|.vmx|Project|The macro project file.|
6969
|.vup|Project|The utility project file.|
7070

7171
For information on other files associated with Visual Studio, see [File Types and File Extensions in Visual Studio .NET](/visualstudio/ide/reference/project-and-solution-file-types).
7272

73-
Project files are organized into folders in Solution Explorer. Visual Studio creates a folder for source files, header files, and resource files, but you can reorganize these folders or create new ones. You can use folders to organize explicitly logical clusters of files within the hierarchy of a project. For example, you could create folders to contain all your user interface source files, or specifications, documentation, or test suites. All file folder names should be unique.
73+
Project files are organized into folders in Solution Explorer. Visual Studio creates a folder for source files, header files, and resource files, but you can reorganize these folders or create new ones. You can use folders to organize explicitly logical clusters of files within the hierarchy of a project. For example, you could create folders to contain all your user interface source files. Or, folders for specifications, documentation, or test suites. All file folder names should be unique.
7474

75-
When you add an item to a project, you add the item to all configurations for that project, regardless of whether or not the item is buildable. For example, if you have a project named MyProject, adding an item adds it to both the Debug and Release project configurations.
75+
When you add an item to a project, you add the item to all configurations for that project. The item is added whether it's buildable or not. For example, if you have a project named MyProject, adding an item adds it to both the Debug and Release project configurations.
7676

7777
## See also
7878

docs/build/reference/mp-build-with-multiple-processes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "/MP (Build with Multiple Processes)"
3-
ms.date: "02/22/2018"
3+
ms.date: "04/08/2019"
44
f1_keywords: ["VC.Project.VCCLCompilerTool.MultiProcessorCompilation"]
55
helpviewer_keywords: ["-MP compiler option (C++)", "/MP compiler option (C++)", "MP compiler option (C++)", "cl.exe compiler, multi-process build"]
66
---
@@ -40,7 +40,7 @@ The following table lists compiler options and language features that are incomp
4040
|--------------------------------|-----------------|
4141
|[#import](../../preprocessor/hash-import-directive-cpp.md) preprocessor directive|Converts the types in a type library into C++ classes, and then writes those classes to a header file.|
4242
|[/E](e-preprocess-to-stdout.md), [/EP](ep-preprocess-to-stdout-without-hash-line-directives.md)|Copies preprocessor output to the standard output (**stdout**).|
43-
|[/Gm](gm-enable-minimal-rebuild.md)|Enables an incremental rebuild.|
43+
|[/Gm](gm-enable-minimal-rebuild.md)|Deprecated. Enables an incremental rebuild.|
4444
|[/showIncludes](showincludes-list-include-files.md)|Writes a list of include files to the standard error (**stderr**).|
4545
|[/Yc](yc-create-precompiled-header-file.md)|Writes a precompiled header file.|
4646

@@ -114,10 +114,6 @@ The guideline for deciding whether to use MSBuild or **/MP** technology is as fo
114114

115115
- If the number of projects and files per project is balanced, use both MSBuild and **/MP**. Initially set the **/maxcpucount** option to the number of projects to build and the **/MP** option to the number of processors on your computer. Measure performance and then adjust your settings to yield the best results. Repeat that cycle until you are satisfied with the total build time.
116116

117-
#### The /Gm Compiler Option
118-
119-
By default, a project build enables the **/Gm** compiler option (incremental builds) for debug builds, and disables it for release builds. Therefore, the **/MP** compiler option is automatically disabled in debug builds because it conflicts with the default **/Gm** compiler option.
120-
121117
## See also
122118

123119
[#import Directive](../../preprocessor/hash-import-directive-cpp.md)<br/>

0 commit comments

Comments
 (0)