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
function compile(mi:Mosel, 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
mi 
The Mosel instance to perform the compilation
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)
Example
Compile the local file "src.mos" stored on the current directory using the instance inst1 and store the resulting BIM file on the current directory of this instance:
r:=compile(ins1,"","rmt:src.mos","dst.bim") 
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.
3. When sending a compilation request to a separate Mosel instance, it is important to keep in mind that the operation is performed in the environment of this instance (in particular its current working directory) and file names should be specified appropriately (the rmt: IO driver can be particularly helpful in this context).
Related topics
load.
Module
mmjobs


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

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.