07 34 Eci
07 34 Eci
07 34 Eci
OPNET Modeler includes several scripts and utility programs which implement
the ECI translation for popular Windows and Linux compilers. Using the
External Compiler Interface Specification, you can generate interface programs
to allow the use of compilers not directly supported in the release.
ECI translators are required to return the compiler’s exit status to their caller.
This provides the ability to determine whether a particular abstract command
that it generated had succeeded.
• Tokens
• Commands
Tokens
The following tokens are used in abstract commands:
• VM—specifies that the script or compiler print to standard output the exact
compilation or linking command (including flags) it sent to the operating
system. This is useful for gathering information when you have trouble
compiling or linking code.
Commands
Four different operations require the generation of an abstract command:
Compiling
where comp_prog and comp_flags come from preferences, while the remaining
options are generated by OPNET Modeler. The value of operation is comp_so
if the object code must be relocatable (if it is to go into a shared object), or comp
if the object code does not need to be relocatable. Information about this
command is listed in the following table.
comp_prog The name of the ECI translator which will generate a command or
commands to compile the input file to the output file.
include_dir The name of an include directory to add to the include path of the
compiler.
Binding Executables
bind_static_prog The name of the ECI translator which will generate a command or
commands to link the input file with the archive and static libraries
to form an output file executable.
input_file The name of the main object file to link with the archives and other
libraries.
bind_shobj_prog The name of the ECI translator which will generate a command or
commands to link the input files with the libraries to form a shared
object library.
input_file The name of the response file which contains the names of object
files to link into the shared library.
export_file The name of a file listing external symbols in the library (Windows
only).
Archiving
arch_prog The name of the Eci translator which will generate a command or
comma to place the files listed in the input response file into a
static library.
input_file The name of the response file which contains the names of object
files to link into the static library.