Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7683 Discussions

Intel C++ Compiler (icc) 19.0 compiler limits

yoon__taehyun
Novice
309 Views

I want to get clarified about the compiler limits of icc 19.0.

What I specifically want to get informed from the compiler limits is "Nesting levels of compound statements, iteration control structures, and selection control structures" in ICC.

In MSVC 2019, it is specified that "generally 100-110" is a recommended upper bound.

In ISO C++11 standard, it says "256" as a minimal upper bound.

There are compiler limits for MSVC and Intel Fortran Compiler specifications available at : 

    1. MSVC: https://docs.microsoft.com/ko-kr/cpp/cpp/compiler-limits?view=vs-2019

    2. Intel Fortran Compiler: https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-compiler-limits

Likewise, is there any specification for Intel C++ Compiler?

Otherwise, does the ICC conforms to the ISO C++98 standard as described in the website

Thank you.

0 Kudos
1 Solution
yoon__taehyun
Novice
308 Views

In regards to "Nesting levels of compound statements, iteration control structures, and selection control structures", I tested it by hard-coding and it turned out that ICC accepted until the depth of 2117, whereas MSVC 2019 (vc141) allowed until the depth of 122, in condition of empty body for the if-else statement.

View solution in original post

2 Replies
Viet_H_Intel
Moderator
309 Views

It should be conform to the ISO C++98 standard.

You can check out the compiler guide and reference at: https://software.intel.com/sites/default/files/19.0U1_CPP_Compiler_DGR_0.pdf

yoon__taehyun
Novice
309 Views

In regards to "Nesting levels of compound statements, iteration control structures, and selection control structures", I tested it by hard-coding and it turned out that ICC accepted until the depth of 2117, whereas MSVC 2019 (vc141) allowed until the depth of 122, in condition of empty body for the if-else statement.

Reply