Initializing help system before first use

# Compile(String, Stream, Stream, String) Method

Compile a model source file. This method compiles a given model source file into a binary model file (bim file) that is required as input to method LoadModel(string) for loading the model. The output file takes the same name as the source file with the extension .bim. Note that the empty string (i.e. "") is interpreted as the standard input for src.
Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 6.10.2+3ade428d42075e2d7a96af804c98ecad5f69fa07
Syntax
C#

    public void Compile(
    	string options,
    	Stream src,
    	Stream dest,
    	string comm
    )

#### Parameters

options String
  compilation options (may be null): String formed from:
  - "g" – include debugging information: in the case of a run time error during the execution of the model the location of the error in the source file may be indicated
  - "G" – include tracing information in addition to debugging information; this makes possible execution step by step of the model through a debugger.
  - "s" – strip symbols: secure the bim file by removing all private symbol names used in the source model
  - "wi" – with this flag a warning is displayed whenever a symbol is implicitly declared
  - "p" – parse only: stop after the syntax analysis of the source file, do not compile (no file generated)
  - "S" – sign the bim file; the generated bim file is signed with the default private key. The bim loader will require the corresponding public key in order to verify this signature.
  - "V" – accept to load only signed packages. Loading of a package will fail if the signature cannot be verified.
src Stream
  Mosel code source
dest Stream
  destination for compiled Mosel code
comm String
  user comment that will be saved as is in the compiled Mosel file

See Also

#### Reference

XPRM Class
Compile Overload
Mosel Namespace
Parent Topic Compile Method

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.