Changes between Version 36 and Version 37 of Orio
- Timestamp:
- 06/11/08 21:43:53 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Orio
v36 v37 98 98 === Using Orio as a Source-to-Source Code Transformation Tool === 99 99 100 Orio has several code transformation module that have already been implemented and are ready to use. One of the transformation modules is ''loop unrolling'', a loop optimization that aims to increase register reuse and to reduce branching instructions by combining instructions that are executed in multiple loop iterations into a single iteration. The below sample code demonstrates how to annotate an application code with a simple portable loop unrolling optimization, where the unroll factor used in this example is four. The original code to be optimized in this example is commonly known as AXPY-4, which is an extended version of the AXPY Basic Liner Algebra Subprogram.100 Orio has several code transformation module that have already been implemented and are ready to use. One of the transformation modules is ''loop unrolling'', which is a loop optimization that aims to increase register reuse and to reduce branching instructions by combining instructions that are executed in multiple loop iterations into a single iteration. The below sample code demonstrates how to annotate an application code with a simple portable loop unrolling optimization, where the unroll factor used in this example is four. The original code to be optimized in this example is commonly known as AXPY-4, which is an extended version of the AXPY Basic Liner Algebra Subprogram. 101 101 102 102 {{{ … … 145 145 === Using Orio as an Automatic Performance Tool === 146 146 147 148 147 149 ''Under construction'' 148 150