Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yoon__taehyun
Novice
186 Views

Intel C++ Compiler (icc) 19.0 compiler limits

Jump to solution

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
186 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
186 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
187 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

Reply