MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço Página 62

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 61
2
Working with the Target Language
2-42
Variable Scoping
The Target Language Compiler uses a form of dynamic scoping to resolve
references to variables. This section illustrates the process that the Target
Language Compiler performs in determining the values of variables.
In the simplest case, to resolve a variable the Target Language Compiler
searches the top-level RTW pool followed by the global pool. This illustration
shows the search sequence that the Target Language Compiler uses.
Figure 2-4: Search Sequence
You can modify the search list and search sequence by using the %with
directive. When you add a construct such as:
%with CompiledModel.system[sysidx]
...
%endwith
Global Pool
%assign a = …
%assign b = …
Top-Level RTW Pool
CompiledModel {
}
2
1
Vista de página 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 281 282

Comentários a estes Manuais

Sem comentários