Intel® PXA27x Processor Family
Optimization Guide
4-1
Intel XScale® Microarchitecture & Intel®
Wireless MMX™ Technology
Optimization
4
4.1
Introduction
This section outlines optimizations specific to ARM* architecture and also to the Intel® Wireless
MMX™ Technology. These optimizations are modified for the Intel XScale® Microarchitecture
where needed. This chapter focuses mainly on the assembly code level optimization.
explains optimization during high level language programming.
4.2
General Optimization Techniques
The Intel XScale® Microarchitecture provides the ability to execute instructions conditionally.
This feature combined with the ability of the Intel XScale® Microarchitecture instructions to
modify the condition codes makes a wide array of optimizations possible.
4.2.1
Conditional Instructions and Loop Control
The Intel XScale® Microarchitecture instructions can selectively modify the state of the condition
codes. When generating code for
if-else
and
loop
conditions it is often beneficial to make use of
this feature to set condition codes, thereby eliminating the need for a subsequent compare
instruction.
Consider the following C statement
if (a + b)
Code generated for the
if
condition without using an add instruction to set condition codes is:
; Assume r0 contains the value a, r1 contains the value b,
; and r2 is available
add r2,r0,r1
cmp r2, #0
However, code can be optimized as follows making use of add instruction to set condition codes:
; Assume r0 contains the value a, r1 contains the value b,
; and r2 is available
Содержание PXA270
Страница 1: ...Order Number 280004 001 Intel PXA27x Processor Family Optimization Guide April 2004...
Страница 10: ...x Intel PXA27x Processor Family Optimization Guide Contents...
Страница 20: ...1 10 Intel PXA27x Processor Family Optimization Guide Introduction...
Страница 30: ...2 10 Intel PXA27x Processor Family Optimization Guide Microarchitecture Overview...
Страница 48: ...3 18 Intel PXA27x Processor Family Optimization Guide System Level Optimization...
Страница 114: ...5 16 Intel PXA27x Processor Family Optimization Guide High Level Language Optimization...
Страница 122: ...6 8 Intel PXA27x Processor Family Optimization Guide Power Optimization...
Страница 143: ...Intel PXA27x Processor Family Optimization Guide Index 5 Index...
Страница 144: ......