MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 151

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 263 264

Commentaires sur ces manuels

Pas de commentaire