Download SIMSCRIPT II.5 User`s Manual
Transcript
SIMSCRIPT II.5 User’s Guide SIMSCRIPT II.5 release. Note that ranlib is not available on all systems. On systems where it is not available it is not needed. To link the object files in a directory with this library, enter: % simld *.o –lxyz A SIMSCRIPT II.5 program can call routines written in other languages, such as C or FORTRAN. To link such a program, specify to simld (or simgld if the program makes use of SIMGRAPHICS features) the name of each object file created by the other compiler, along with the name of each object file created by the SIMSCRIPT II.5 compiler. SIMSCRIPT II.5 supports two graphics systems SIMGRAPHICS I and SIMGRAPHICS II. As of Release 1.9, SIMGRAPHICS II is the default SIMGRAPHICS in SIMSCRIPT II.5 systems. Compiler switch -G will link graphical models with SIMGRAPHICS II libraries. simc -G *.sim Also simgld will automatically link with SIMGRAPHICS II libraries. If you want to use SIMGRAPHICS I, you must compile your model with the -c option and use simgld1 as follows: simc -c *.sim simgld1 *.o SIMSCRIPT II.5 runtime libraries as well as SIMGRAPHICS libraries are distributed in two versions: dynamic link libraries and archive libraries. This facilitates dynamic and static linking. By default programs will be linked dynamically. When a model is linked dynamically, the executable image does not include the entire object modules it needs for execution. It contains pointers to the dynamic link libraries also called “shareable libraries”. The benefits of dynamic linking are twofold: first linking time is shorter, second all SIMSCRIPT models in the same computer platform share the same runtime libraries which results in substantial savings of disk space. When you use existing link commands: simld, simgld, simgld1 and simgld2 your model will be linked dynamically. If you want to execute your model on some other platform, which does not have the same release of SIMSCRIPT II.5, or does not have SIMSCRIPT II.5 installed at all, your model must be linked statically. This means that you have to perform static link or “total link”. In other words, your executable has to include all object modules in itself. SIMSCRIPT II.5 provides commands for platform independent static linking or “total linking” for both non-graphical and graphical SIMSCRIPT models: tsimld tsimgld tsimgld1 tsimgld2 30 - static link of non-graphical models - static link of graphical models by default with SIMGRAPHICS II - static link of graphical models with SIMGRAPHICS I - static link of graphical models with SIMGRAPHICS II