MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale di Servizio Pagina 26

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 281 282

Commenti su questo manuale

Nessun commento