This structure provides facilities for loading and dynamically linking foreign code for use with the C data model.
c_structureType abbreviation
type c_structure
c_structure are containers of foreign code. Each c_structure object is created as a result of dynamically linking foreign code from a file.
Aliens structure. See "The Aliens structure" on page 241.
Datatype
datatype load_mode = IMMEDIATE_LOAD | DEFERRED_LOAD
IMMEDIATE_LOADLink foreign code immediately.
DEFERRED_LOADLink foreign code at first call to the library.
Function
val loadObjectFile : filename * load_mode -> c_structure
c_structure by dynamically linking foreign code associated with the specified file, in accordance with the given load_mode.
Function
val fileInfo : c_structure -> (filename * load_mode)
load_mode used to create the c_structure.
Function
val filesLoaded : unit -> filename list
Function
val symbols : c_structure -> name list
c_structure. This info might indicate the name of the object, what kind of object it is, and even a relocatable address associated with the code.
Datatype
datatype value_type = CODE_VALUE | VAR_VALUE | UNKNOWN_VALUE
CODE_VALUEObject appears to be functional code of some description.
VAR_VALUEObject appears to be a (visible) variable containing foreign data.
UNKNOWN_VALUEObject cannot be classified, though it could be either of the above.
Function