next up previous top
Next: Filter
Up: Component Type
Previous: Computation

SharedData

Semantics

The component type SharedData is a specialization of the Module component type. This type is intended to capture the semantics of compilation units that export only global data to be shared among collections of functions and procedures defined in other compilation units. Components of type SharedData define and export global data and reference global data defined in other compilation units.

Player types

Players of the following types can be legally exposed in the interface of a component of type SharedData:

an exported global data definition
a reference to an exported global data definition in another compilation unit
a collection of programming language players, players of types
GlobalDataDef and GlobalDataUse

Properties

The following properties can be legally included in the property list of a component of type SharedData. Properties legal in an <interface> property list have a C in parentheses after the property name; those legal in an <instantiation> property list have an I:

The syntax for an InstFormals property in a component of type SharedData is a comma-separated list of <parameter>s enclosed in parentheses. A <parameter> consists of an <identifier>, followed by a `=', followed by a <complex string> or the language keyword NODEFAULT. A <complex string> is a simple "string" or a sequence of "string"s concatenated by the `&' character:

INSTFORMALS (first_parameter = "an initial value",
second_parameter = "a much" &
"longer initial value that " &
"will not fit on one line",
third_parameter = NODEFAULT)
The syntax for a Variant property in a component of type
SharedData is a single <identifier> or "string" surrounded by parentheses:

VARIANT (a_variant_name)
VARIANT ("a variant name")
The syntax for a Processor property in a component of type
SharedData is a single <identifier> or "string" surrounded by parentheses:

PROCESSOR (a_processor_name)
PROCESSOR ("a.processor.name")
The Library property has no associated value. The syntax, therefore, is simply:

LIBRARY

Semantic Checks

No special semantic checks are made for components of type SharedData.

Implementation Considerations

The source code implementation of a SharedData component is simply a collection of external C data definitions that may reference other external data definitions for initialization purposes.


next up previous top
Next: Filter
Up: Component Type
Previous: Computation

Comments? Mail the current maintainer of this page.

Author: Gregory Zelesnik

Last Modified: May 12, 1996