--require 'module ...'
The ejsmod command is a utility program for Ejscript module files to
generate symbolic assembler listings, slot defintion files for native
classes and HTML documentation.
To generate symbolic assembler listings, compile your source using the
ejsc command with the --debug switch. Then invoke ejsmod with the
--listing switch and supply the required modules. An assembler listing
file with a ".lst" extension will be generated for each corresponding
logical module directive.
The listing files interleave disassembled byte code with the relevant
source code statements. The listings describe each module and its con-
stituent functions and initializers. The bindings for all types and the
constant pool are also listed.
To generate HTML documentation for your code, first compile using the
ejsc command with the --doc switch. Then invoke ejsmod and use the
--html switch with the directory where you want the documentation gen-
The HTML documentation will include all modules, namespaces, types,
functions, properties and variable declarations.
BINDING SLOT FILES
Ejscript supports the creation of native types which are coded in the C
language. Native types are useful for core system types and for classes
that must run at near binary speed. To facilitate creating native
types, ejsmod generates slot binding definition headers which define
symbolic offsets for declarations. See the Native class samples for
Generate slot binding definition headers for the input modules.
List of modules to preload before loading the input modules.
Set the module search path. The module search path is a set of
directories that the ejsmod command will use when locating and
loading Ejscript modules. The search path will always have some
system directories appended to the end. These include paths
specified via the EJSPATH environment variable and key system
directories such as the Ejscript system module directory and the
directory containing the ejsmod command.
The search path value is similar in format to the system PATH
variable format. On windows, path segments are separated by ";"
and on Linux, Unix, FreeBSD and MAC, the path segments are sepa-
rated by ":" delimiters.
Given a module named "a.b.c" in a script, ejsmod will use the
following search strategy to locate the module:
1. Search for a module file named "a.b.c.mod"
2. Search for a module file named "a/b/c.mod"
3. Search for a module file named "a.b.c.mod" in the search path
4. Search for a module file named c.mod in the search path
Show debug instructions in the symbolic assembler listings.
Print the ejsmod command version and exit.
use in embedded applications such as web servers, embedded devices and
Ejscript is a dynamic, interpreted, object-oriented scripting language
that supports classes, objects, exceptions, statements, expressions and
a powerful suite of data types.
Report bugs to email@example.com.
Copyright (C) Embedthis Software. Ejscript is a trademark of Embedthis
Man(1) output converted with