If you specify an option or language feature that is incompatible with the /MP option, you'll receive a diagnostic message. Writes a list of include files to the standard error ( stderr). The following table lists compiler options and language features that are incompatible with the /MP option: Option or Language FeatureĬonverts the types in a type library into C++ classes, and then writes those classes to a header file.Ĭopies preprocessor output to the standard output ( stdout).ĭeprecated. In some cases, the combination of options would make the performance worse. As a result, the output would intermix and be garbled. Most options are incompatible because if they were permitted, the concurrently executing compilers would write their output at the same time to the console or to a particular file. If you use an incompatible language feature, the compiler issues error C2813 then ends or continues depending on the current compiler warning level option. If you use an incompatible compiler option with the /MP option, the compiler issues warning D9030 and ignores the /MP option. The /MP option is incompatible with some compiler options and language features. Incompatible options and language features For advice to help you make that decision, see Guidelines. Experiment with the /MP option to determine the best setting to build a particular project. The improvement in build time depends on the number of processors on a computer, the number of files to compile, and the availability of system resources, such as I/O capacity. The /MP option applies to compilations, but not to linking or link-time code generation. To improve build time, the compiler creates up to processMax copies of itself, and then uses those copies to compile your source files at the same time. The /MP compiler option can significantly reduce build time when you compile many files. If you omit the processMax argument, the compiler retrieves the number of effective processors on your computer from the operating system, and creates a process for each processor. Otherwise, the compiler issues warning message D9014, ignores the processMax argument, and assumes the maximum number of processes is 1. The processMax argument must range from 1 through 65536. (Optional) The maximum number of processes that the compiler can create. In some cases, the total time to build the source files can be reduced significantly. Then these instances simultaneously compile the source files. The /MP option causes the compiler to create one or more copies of itself, each in a separate process. The /MP option can reduce the total time to compile the source files on the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |