14.6.1. Defining a Processor. Altium TriCore
Реклама
Реклама
TASKING VX-toolset for TriCore User Guide
14.6.1. Defining a Processor
If you have a target board with multiple processors that have the same derivative, you need to instantiate each individual processor in a processor definition. This information tells the linker which processor has which derivative and enables the linker to distinguish between the present processors.
If you use processors that all have a unique derivative, you may omit the processor definitions.
In this case the linker assumes that for each derivative definition in the LSL file there is one processor. The linker uses the derivative name also for the processor.
With the keyword
processor
you define a processor. You can freely choose the processor name. The name is used to refer to it at other places in the LSL file:
processor proc_name
{
processor definition
}
14.6.2. Instantiating Derivatives
With the keyword
derivative
you tell the linker that the given processor has a certain derivative. The derivative name refers to an existing derivative definition in the same LSL file.
For example, if you have two processors on your target board (called myproc_1
and myproc_2
) that have the same derivative (called myderiv
), you must instantiate both processors as follows: processor myproc_1
{
derivative = myderiv;
} processor myproc_2
{
772
Изтегляне
Реклама