MATLAB Compiler | ![]() ![]() |
This section highlights the two header files that the Compiler can generate for the Sierpinski Gasket (gasket.m) example.
C Header File
If the target language is C, the Compiler generates the header file, gasket.h
. This example uses the Compiler command
to generate the associated files. The C header file, gasket.h
, is
/* * MATLAB Compiler: 3.0 * Date: Wed Jan 23 14:51:45 2002 * 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 _mexLocalFunctionTable _local_function_table_gasket; extern mxArray * mlfGasket(mxArray * numPoints); extern void mlxGasket(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); #ifdef __cplusplus } #endif #endif
![]() | Compiling Private and Method Functions | C++ Header File | ![]() |