MATLAB COMPILER RELEASE NOTES Betriebsanweisung Seite 151

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 150
Including M-File Information in Compiler Output
5-35
All Annotation
To i nclude both comments and source code from the source M-file in the
generated output, use
mcc -A annotation:all …
or do not stipulate the annotation o ption, thus using the default of all.
The code snippet contains both comments and source code.
static void Mhello(void) {
mxArray * ans = mclGetUninitializedArray();
/*
* This is the hello, world function written in M code
* $Revision: 1.1 $
*
*/
mclAssignAns(
&ans,
mlfNFprintf(0, mlfScalar(1), mxCreateString("Hello, World\\n"), NULL));
mxDestroyArray(ans);
}
.
.
.
Comments
static void Mhello(void) {
mxArray * ans = mclGetUninitializedArray();
/*
* % This is the hello, world function written in M code
* % $Revision: 1.1 $
* %
* fprintf(1,'Hello, World\n' );
*/
mclAssignAns(
&ans,
mlfNFprintf(0, mlfScalar(1), mxCreateString("Hello, World\\n"), NULL));
mxDestroyArray(ans);
}
.
.
.
Comments
Code
Seitenansicht 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare