compile


Purpose
Compile a source model.
Synopsis
function compile(src:string):integer
function compile(opt:string, src:string):integer
function compile(opt:string, src:string, dst: string):integer
Arguments
opt 
Compilation options:
"g" 
Include debugging information
"G" 
Include tracing information
"s" 
Strip symbols
"p" 
parse only: stop after the syntax analysis of the source file, do not compile (no file generated)
src 
Source file name
dst 
Destination file name
Return value
Function executed successfully
Parsing phase has failed (syntax error or file access error)
Error in compilation phase (a semantic error has been detected)
Error writing the output file
License error (compiler not authorized)
Further information
1. This function compiles a given model source file into a binary model file (bim file) that is required as input to function load for executing the model.
2. If no destination file name is provided, the output file takes the same name as the source file with the extension .bim.
Related topics
load.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.