what is unrolled loops and how to check and know unrolled loops of cpu in ubuntu
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Loop unrolling is a compiler optimization technique. It is not a setting in your OS. If you know the settings you want in software then you can set the optimizations at compile time.
What is the actual problem you're trying to solve? Give the overall explanation of your problem and don't ask about sub-parts.
The very-simple essential idea of "loop unrolling" is that ... sometimes, the conditional-instructions that send the computer back into another iteration of a loop are expensive, whereas the instructions that make up the body of the loop are not. Therefore, if (for example) you know that the loop will be executed some multiple-of-three times, it might be faster to generate three instances of the loop-body in a row, then have the loop execute one-third as many times. It's a compiler optimization, in the classic "speed vs. space" tradition.
Last edited by sundialsvcs; 07-31-2014 at 10:23 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.