Intel C++ Compiler 關於Warning, error的處理

來源:互聯網
上載者:User

Intel C++ Compiler for Windows* - Compiler Diagnostics

                                          (i.e. errors, warnings or remarks)

 

國內使用和關於Intel C++ Compiler的資料並不多,本人在工作中參考了Intel的這些Compile的規則。

希望對大家的工作有所協助。

                                                                                                                             ----Autodesk, ACRD. Wentao Sun.

List of Diagnostics and Definitions

Although there is not a comprehensive document for all the diagnostic definitions for the Intel C++ Compilers, you can get a list of all the diagnostics with a brief definition with a new option "-Qdiag-dump" on Windows* or "-diag-dump" on Linux* or Mac OS*. 
Note: this option is new to Intel C++ 10.0 Compilers. 

For more information on a specific diagnostic, submit an issue and ask us.

1. Intel C++ Compiler Diagnoses More Warnings than Visual C++* or gcc*

Typically the Intel C++ Compiler emits more warnings. These warnings alert programmers to potentially non-portable or dangerous situations. If you have any questions about a warning, please contact Intel Premier Support.

2. Disabling Warnings and Errors

To disable one or multiple warnings or errors, use "-QwdXXX,YYY" on Windows or "-wdXXX,YYY" on Linux or Mac OS 
To disable all warnings, use "-w" on all platforms. (可以用-Qwd123來disable warning, 在VC++的preprocess definitions中加入即可。另外可以用-w來disable所有的錯誤。)

3. Disabling all auto-parallelizer remarks (自動並行化的標記)

To disable all the auto-paralelizer diagnostic messages, use "-Qdiag-disable:par" for Windows, "-diag-disable par" for Linux or Mac OS. 
Note: this is new to the Intel C++ 10.0 Compilers.

Disabling all vectorization remarks

To disable all the vectorization messages, use "-Qdiag-disable:vec" for Windows, "-diag-disable vec" for Linux or Mac OS. 
Note: this is new to the Intel C++ 10.0 Compilers.

Disabling cpu-dispatch remarks

To disable all the vectorization messages, use "-Qdiag-disable:cpu-dispatch" for Windows, "-diag-disable cpu-dispatch" for Linux or Mac OS. 
Note : this is new to the Intel C++ 10.0 Compilers.

Disabling all remarks

To disable a remark, use "-Qdiag-disable:remark" for Windows, "-diag-disable remark" for Linux and Mac OS. 
This option disables all the remarks including vectorization, auto-parallelization, cpu-dispatch etc. diagnostic messages. 
Note: this is new to the Intel C++ 10.0 Compilers. 

Please see the Compiler Options section in the User's Guide for more information.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.