cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
heshsham
Adventurer
Adventurer
3,422 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
bwiec
Xilinx Employee
Xilinx Employee
3,408 Views
Registered: ‎08-02-2011

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
heshsham
Adventurer
Adventurer
3,406 Views
Registered: ‎05-01-2012

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

 

Rgrds, 

 

Heshsham . 

 

0 Kudos