User`s guide
5 Controlling Code Generation
5-8
The Generated Header Files
This section hig hlights the two header files that the Compiler can generate fo r
the Sierpins ki G asket (
gasket.m)example.
C Header File
If the target language is C, the Compiler generates the header file, gasket.h.
This example uses t he C ompiler command
mcc -t -L C -T codegen -F page-width:60 gasket
to generate the associated files. The C header file, gasket.h,is
/*
* MATLAB Compiler: 2.1
* Date: Thu Aug 24 08:43:31 2000
* Arguments: "-B" "macro_default" "-O" "all" "-O"
* "fold_scalar_mxarrays:on" "-O"
* "fold_non_scalar_mxarrays:on" "-O"
* "optimize_integer_for_loops:on" "-O" "array_indexing:on"
* "-O" "optimize_conditionals:on" "-t" "-L" "C" "-T"
* "codegen" "-F" "page-width:60" "gasket"
*/
#ifndef MLF_V2
#define MLF_V2 1
#endif
#ifndef __gasket_h
#define __gasket_h 1
#ifdef __cplusplus
extern "C" {
#endif
#include "libmatlb.h"
extern void InitializeModule_gasket(void);
extern void TerminateModule_gasket(void);
extern mxArray * mlfGasket(mxArray * numPoints);