English
Language : 

AN3350 Datasheet, PDF (16/185 Pages) STMicroelectronics – eTPU compiler tools
Overview
1
Overview
AN3350
This chapter explains the processes that eTPU build tools use to create software:
● Compiler architecture
● Linker architecture
1.1
Compiler architecture
From a programmer’s point of view, the compiler translates source code into object code.
Internally, however, the compiler organizes its work between its front-end and back-end,
each end taking several steps. Figure 1 shows the steps the compiler takes.
Figure 1. Compiler steps
IURQWHQG
EDFNHQG
UHDGVHWWLQJV
UHDGDQG
SUHSURFHVVVRXUFHFRGH
WUDQVODWHWRLQWHUPHGLDWH
UHSUHVHQWDWLRQ
WUDQVODWHWR
SURFHVVRUREMHFW
FRGH
RXWSXWREMHFWFRGHDQG
GHEXJJLQJGDWD
VHWWLQJVIURPWKH,'(RU
FRPPDQGOLQH
VRXUFHFRGHILOHDQG
LQFOXGHGILOHV
RSWLPL]H
LQWHUPHGLDWH
UHSUHVHQWDWLRQ
RSWLPL]H
REMHFWFRGH
REMHFWFRGHDQGGHEXJJLQJ
GDWDILOHV
*$3*06
Front-end steps:
● Read settings: retrieves your settings from the host’s integrated development
environment (IDE) or the command line to configure how to perform subsequent steps
● Read and preprocess source code: reads your program’s source code files and applies
preprocessor directives
● Translate to intermediate representation: translates your program’s preprocessed
source code into a platform-independent intermediate representation
● Optimize intermediate representation: rearranges the intermediate representation to
reduce your program’s size, improve its performance, or both
16/185
Doc ID 018512 Rev 2