Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

Build a SPARK problem statically

The following diagram shows the static build process resulting in the executable simulator problem.exe. Red font is used to indicate systems program like the C++ compiler and linker. Blue font is used to indicate the SPARK programs and files involved in the build process. The bold arrows indicate file dependencies at runtime, whereas the normal arrows indicate build operations performed before runtime. This mode of operation is accomplished by executing the SPARK makefile with the following flag at the command-line:

     gmake SPARK_STATIC_BUILD=yes <some-target> <enter>

static_build_process.png
Note:

Execute the simulator

At runtime, the only files that are needed to run a statically-built problem with the default driver function are:

To simulate a statically-built problem, type at the command line:

    problem problem.run problem.prf <enter>

Once the simulator is built, the C++ compiler and the linker are no longer needed. All needed atomic classes and the solver library are statically linked along to produce the executable simulator, thus producing a self-contained simulator program that can be shared with and reused by different users on the same platform.

Note:
It is also possible to build dynamic SPARK problems that are built at runtime from the problem.xml file and the dynamic libraries containing the compiled atomic classes (See Build a SPARK problem dynamically).


Generated on 5 Nov 2003 for VisualSPARK 2.01