The Eclipse libraries contain every utility available in the Eclipse top-level application. Programs written in C and other C-compatible languages can be linked to these libraries to use the utilities directly.
Each utility follows the naming convention. For example:
cl". In addition, non-alphanumeric
characters are replaced by mnemonics in a contrasting case. Eg.:
clSymbolValue, clList, clListSTAR.
cl". In addition,
non-alphanumeric characters are replaced by mnemonics in a contrasting
case. Eg.: clSYMBOL_VALUE, clLIST, clLISTstar.
See "C Identifier Naming Convention" for more details.
A typical interactive programming application, such as the Eclipse top-level itself, needs to use (eg. be linked with) both the run time and the the development libraries. However, most applications need only use the run time library. All Eclipse applications must use at least some parts of the run time library.
In addition to defining Lisp functions and symbols, the
run time library and its header file (eclipse.h)
define facilitites for using Lisp constructs such as closures and
unwind-protect, converting between Lisp and C data, and memory
management. See "Implementation of Lisp" for
more information.
It is not unspecified whether development library symbols, functions, etc., are present, interned, bound, fbound, etc., in the run time library. In fact, many utilities which have full definitions provided only by the development library may have dummy definitions in the run time library.
Each library defines a system initialization function that must be called by application code before any utilities from the library may be used:
Regardless of format, a library may be made up of a number of smaller pieces. Depending on the needs of an application, it may not be necessary to use all the utilities defined within a library. We use the term module to refer to a component of a library which defines some subset of utilities within the library.
No facilities are defined at this time to initialize individual modules within either the run time or development libraries. Use of one of the Eclipse libraries implies the availability of all utilities defined by that library.
See Initializing the Eclipse Library.
These are defined using the default file extension and format for each
platform (eg. libeclipse.a).
All Eclipse applications should be linked with the standard operating system provided ANSI C libraries (eg. libc.a and libm.a). See the Release Notes to see if there are any platform-specific operating system provided libraries that must also be used.
For example, suppose you have a "development" application, such as the Eclipse top-level itself, that uses the development library. Suppose, further, that you use compile-file within this application to generate C code.
After compiling the generated C code, you can link it with whatever library is appropriate for the application being created -- regardless of the fact that C code was created with a development library.
This is true for different libraries, different library modules, and different library formats.
In particular, even though defmacro requires the development library to be meaningful, one does not necessarilly have to strip defmacro definitions from source code if the corresponding generated application is to use only the run time library. The macro functions will still be present at run time, but there will be no Eclipse-provided utility which uses them.