[ExM Users] mkstatic questions

Tim Armstrong tim.g.armstrong at gmail.com
Tue May 27 14:14:24 CDT 2014


On Tue, May 27, 2014 at 1:50 PM, Ketan Maheshwari <ketan at mcs.anl.gov> wrote:

> Hi,
>
> Trying to get the Rosetta application static build for Turbine using
> mkstatic.tcl.
>
> I am a bit confused about the entries in the manifest file:
>
> 1. The purpose of lib_script option is not very clear to me. What scripts
> are supposed to go in there? The template lists user_stuff1.tcl,
> user_stuff2.tcl.
>
> Any Tcl scripts that you want to run when the library loads.  E.g. if you
set pkg_name=the_pkg and lib_script=the_pkg.tcl, then pkg.tcl will be
included in the executable.  It's run when the Tcl user script does a
"package require the_pkg".


> 2. The lib_include entry: does it accept both include dirs and header
> files?
>
It has to be a header file - it will just add a #include at the top of the
C main file.  You have to provide any include directory flags to the C
compiler later when you compile it.


>
> 3. From the documentation
> http://www.mcs.anl.gov/exm/local/guides/swift.html#mkstatic, I see that
> there are options at commandline such as --include-lib and
> --include-system-lib. Are these in lieu of the ones in the manifest?
>
These let you link in entire library directories.

--include-system-lib is for the Tcl standard library directory that is
always loaded on startup - it links the files into the executable so that
it doesn't need to load them off disk.  It's mainly for performance, but it
can help build entirely self-contained executables.

 --include-lib  lets you link in an external library, e.g. a directory of
Tcl files, or a directory with a pkgIndex.tcl file.  These are set up to to
be loaded on demand with "package require".  --include-lib <dir> is
essentially an alternative to setting TURBINE_USER_LIB=<dir>.



>
> Thanks,
> Ketan
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140527/467f5241/attachment.html>


More information about the ExM-user mailing list