- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this the area for asking Intel compiler questions? I was referred to that area by the Intel Cilk Plus forum whenI started askng questions about the icc compiler.I need to ask some icc questions; soifI am in the correct place please let me know, ifI am not then direct me.
AmI in the icc compiler forum?
Thanks in advance.
Newport_j
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, this is the right forum for Intel C++ compiler questions.
Jennifer
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, my quetion is really a c source code question. i read in a c tutorial book that a while loopcan be considered a for loop without an idex and a stopping criterion. This of course applies to gcc, but does it apply to icc?
Also, in C and its descendants, a while loop is a for loop with no initialization or counting expressions, i.e.,
for ( ; condition; )
{
statements;
}
Is this true for icc?I want to replace while loops with for loops. If this works in icc great.
Thanks in advance.
Newport_j
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is C language feature, icc supports it. icc is compatible with gcc.
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the syntax is equivalent. It isn't likely to help with optimization; unless the compiler can pick up a trip count to make the loop countable, neither gcc nor icc will be able to vectorize, and _Cilk_for probably won't work.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page