UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,289 Views
Registered: ‎05-01-2012

Loop unrolling in Microblaze C programming using EDK

Hi,

 

I am a first time user of Microblaze.  

 

To increase my system performance, I am planning to use loop unrolling.

 

Do I have this feature available in programming MicroBlaze in C using EDK?

 

 

Thanks and regards, 

 

Heshsham

 

 

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,275 Views
Registered: ‎08-02-2011

Re: Loop unrolling in Microblaze C programming using EDK

I'd have a look here:

http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Optimize-Options.html

 

Particularly, the -funroll-loops section.

 

The different -O optimization switchs (available directly in the SDK GUI) may do loop unrolling because it enables -floop-optimize which states:

 

-floop-optimize
Perform loop optimizations: move constant expressions out of loops, simplify exit test conditions and optionally do strength-reduction and loop unrolling as well.

Enabled at levels-O,-O2,-O3,-Os.

www.xilinx.com
0 Kudos
Adventurer
Adventurer
3,273 Views
Registered: ‎05-01-2012

Re: Loop unrolling in Microblaze C programming using EDK

Thanks a lot for your reply.  This should help me to a great extent.

 

Rgrds, 

 

Heshsham . 

 

0 Kudos