MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuel de service Page 26

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 282
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 25
2
Working with the Target Language
2-6
Compiler Directives
Syntax
A target language file consists of a series of statements of the form
%keyword [argument1, argument2, …]
where keyword represents one of the Target Language Compiler’s directives,
and
[argument1, argument2,] represents expressions that define any
required parameters. For example,
%assign sysNumber = sysIdx + 1
uses the %assign directive to change the value of the sysNumber parameter.
A target language directive must be the first nonblank character on a line and
always begins with the
% character. Beginning a line with %% lets you include a
comment on a line.
Table 2-1 shows the complete set of TLC directives. The remainder of this
chapter describes each directive in detail.
Table 2-1: Target Language Compiler Directives
Type Construct
Comments
/% %/
%%
Target language
expressions
%<expression>
Formatting
%realformat string
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 281 282

Commentaires sur ces manuels

Pas de commentaire