Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:40:24+00:00 2026-06-12T14:40:24+00:00

Furthermore, how does the compiler determine the extent to unroll a loop, assuming all

  • 0

Furthermore, how does the compiler determine the extent to unroll a loop, assuming all operations in the loop are completely independent of other iterations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:40:25+00:00Added an answer on June 12, 2026 at 2:40 pm

    For MSVC there is only a vector independence hint: http://msdn.microsoft.com/en-us/library/hh923901.aspx

    #pragma loop( ivdep )
    

    For many other compilers, like Intel/ibm, there a several pragma hints for optimizing a loop:

    #pragma unroll
    #pragma loop count N
    #pragma ivdep
    

    There is a thread with MSVC++ people about unroll heuristic: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/d0b225c2-f5b0-4bb9-ac6a-4d4f61f7cb17/

    VC tries to balance execution speed and code size. You can change the balance by using flags /O1 or /O2, but even when optimzing for speed VC tries to conserve code size as well.

    Basically, unroll will increase code size, so it may be limited in Os and O1 modes (modes table)

    PS: Pragma looks like preprocessor directive, but it is not. It is a directive for compiler and it it ignored (kept) by preprocessor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So the following works: alert(Number().toString.call(1)); But this does not work: alert(Number.toString.call(1)); Furthermore, the following
Let's say we have two objects. Furthermore, let's assume that they really have no
I'm using derby as an embedded database. Furthermore, I'm using it's in-memory database option
Im working on a Java Application that edits Pdf files. Furthermore a shell script
Using the native Android MediaPlayer class I am able to play Shoutcast streams. Furthermore,
I want to add class atttributes to a superclass dynamically. Furthermore, I want to
How can I look up a hostname given an IP address? Furthermore, how can
Visual Studio 2008 does a much better job of detecting and adding controls from
Could somebody explain to me what the command rake assets:clean really does? Unfortunately the
I use a script for my homepage but I'd like to localize it. Furthermore

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.