TriCore 32-bit Unified Processor
Compiler Writer’s Guide
User’s Manual vii V1.4, 2003-12
Preface
This document is intended as a supplement to the TriCore architecture manual, for use
by compiler writers and code generation tool vendors. It presumes a degree of familiarity
with the architecture manual, although it can be read by experienced compiler writers as
an “inside introduction” to the architecture.
The document is divided into the following chapters:
Chapter 1
A compendium of code generation strategy recommendations and target-specific
optimizations that apply to the TriCore architecture. Many of the items in this chapter will
be obvious to any experienced code generator developer who has studied the TriCore
architecture. However they provide a useful checklist and potential source of design
ideas. Reviewing them may also help to provide insight into the architecture and speed
of the re-targeting effort.
Chapter 2
Deals with the specifics of particular TriCore implementations, as well as compiler
strategies for supporting various configurations and the impact on code generation.
Chapter 3
Discusses “advanced” optimization methods. These are mostly related to extraction of
parallelism from source code and loop restructuring to exploit the packed data
operations of the architecture. These optimizations require control and data dependence
analysis, and other techniques that are beyond the reach of “typical” commercial
compilers.
Chapter 4
Covers DSP support. It covers C language extensions that allow users access to the
DSP capabilities of the TriCore architecture.
Appendix A
Provides lists of packed arithmetic instructions. It is a comprehensive list of Tricore
packed arithmetic instructions corresponding to each regular DSP instruction.
Appendix B
Provides some non-trivial coding examples that illustrate how to exploit the TriCore for
achieving high code density.