New Features of Eli Version 4.8
The :exe product is the executable file derived from the
specifications, to be run on the current machine
(see exe -- Executable Version of the Processor of Products and Parameters).
When Eli-generated code is only a part of a program created by other means,
it may be convenient to encode it as a
shared library.
This strategy could be used, for example, to incorporate Eli-generated code
into a Java program via the Java Native Interface.
The :so product is a shared library file derived from the given
specifications
(see so -- Shared library Version of the Processor of Products and Parameters).
A shared library should not have a
main program, and therefore it should be derived with the
+nomain opition
(see nomain -- Omitting the main program of Products and Parameters).
When a shared library is used, the program using it normally requires that
the shared library file have a specific name.
Thus the :so product should be copied out of the cache into a file
with the appropriate name
(see Extracting and Editing Objects of User Interface).
For example, suppose that we were deriving from `MyProc.fw'
and the required name for the shared library file was `YourLib.so'.
In that case, an appropriate derivation request might be:
MyProc.fw +nomain :so > YourLib.so
|