Matlab中的mcc编译器

   mcc Invoke MATLAB to C/C++ Compiler (Version 5.0). 
   mcc [-options] fun [fun2 ...]   
   Prepare fun.m for deployment outside of the MATLAB environment. 
   Generate wrapper files in C or C++ and optionally build standalone 
   binary files.   
   Write any resulting files into the current directory, by default.   
   For all targets except standalone, if more than one file is 
   specified, a C or C++ interface is generated for each file. 
   The only exception to this rule is when the file is specified 
   with a ''-a'' flag.   
   If C or object files are specified, they are passed to MBUILD along 
   with any generated C files.   
   If conflicting options are presented to mcc, the rightmost conflicting 
   option is used.   
   OPTIONS:   
   a Add to the CTF archive. If the specified file 
        is an M, mex or p file, this function will not be exported in the 
        resulting target.   
   b Generate an MS Excel compatible formula function for the 
        given list of MATLAB functions (requires MATLAB Builder EX). This option 
        will be obsoleted in a future release of MATLAB Builder for EX.   
   B [:[,]] Specify bundle file. is a text 
      file containing Compiler command line options. The Compiler behaves 
      as if the "-B " were replaced by the contents of the 
      bundle file. Newlines appearing in these files are allowed and are 
      treated as whitespace. MathWorks provides options files for the 
      following:   
          ccom        Used for building COM components on Windows 
                      (requires MATLAB Builder NE)   
          cexcel      Used for building Excel components on Windows 
                      (requires MATLAB Builder EX installed)   
          cjava       Used for building Java components (requires 
                      MATLAB Builder JA installed)   
          cpplib      Used for building a C++ shared library.   
          csharedlib  Used for building a C shared library.   
          dotnet      Used for building .NET components on Windows 
                      (requires MATLAB Builder NE installed)   
   C For stand-alone applications and shared libraries, generate a separate 
      CTF archive. If this option is not specified, the CTF will be embedded 
      within the stand-alone application or library.   
   c C only. Generate C wrapper code.  This is equivalent to "-T codegen" 
      as the rightmost argument on the command line.   
   d Output directory. All generated files will be put in 
      .   
   e Macro that generates a C Windows application on the Windows platform. On 
      non-Windows platforms, it is the same as the macro -m. This is 
      equivalent to the options "-W WinMain -T link:exe", which can be found 
      in the file /toolbox/compiler/bundles/macro_option_e.   
   f Override the default options file with the specified 
      options file when calling MBUILD. This allows you to use different 
      ANSI compilers. This option is a direct pass-through to the MBUILD 
      script. See "External Interfaces" documentation for more 
      information.   
   g Debug. Include debugging symbol information.   
   I Include path. Add to the list of paths to search for 
      files. The MATLAB path is automatically included when running 
      from MATLAB. When running from DOS or the UNIX shell, the 
      MATLAB Compiler includes the paths from pathdef.m in 
      /toolbox/local.   
   l Create function library. This option is equivalent to -W lib 
      -T link:lib. It generates library wrapper functions for each file 
      on the command line and calls your C compiler to build a shared 
      library, which exports these functions. The library name is the 
      component name, which is either derived from the name of the first 
      file on the command line or specified with the -n option.   
   m Macro that generates a C stand-alone application. This is 
      equivalent to the options "-W main -T link:exe", which can be found 
      in the file /toolbox/compiler/bundles/macro_option_m.   
   M "" Pass to the MBUILD script to build an 
      executable. If -M is used multiple times, the rightmost occurrence 
       is used.   
   N Clear path. Clear the compilation search path of all directories 
      except the following core directories: 
          /toolbox/matlab 
          /toolbox/local 
          /toolbox/compiler 
          /toolbox/javabuilder for building Java components 
          /toolbox/dotnetbuilder for building .NET components 
      It also retains all subdirectories of the above list that appear on 
      the MATLAB path at compile time.   
   o Output name. Set the name of the final component and 
      CTF archive to . A suitable, possibly 
      platform-dependent, extension is added to (e.g., 
      ".exe" for Windows stand-alone applications). The default output 
      filename is the name of the first file (for stand-alone target) 
      or the name specified with the -W option. See option W for more 
      information.   
   p   Add to the compilation search path. This 
      option can only be used in conjunction with the -N option. This 
      option will add to the compilation search path in the 
      same order as in your MATLAB path. If directory is not an absolute 
      path, it is assumed to be under the current working directory. The 
      rules for how these directories are included are 
      * If is on the original MATLAB path, the  
        and all its subdirectories that appear on the original path are 
        added to the compilation search path in the same order as it 
        appears on MATLAB path. 
      * If is not on the original MATLAB path, it is not 
        included in the compilation. (You can use -I to add it.) 
      If the same directory is added with both the -I and -p option (-N 
      appearing before both the options), the directory will be added as 
      per the rules of -p.   
   R

你可能感兴趣的:(专业)