C tutorial : C Language Mapping


C tutorial : C Language Mapping








Table of Contents:






                                               “Requirements for a Language Mapping”  

“Scoped Names” 
“Mapping for Interfaces” 
“Inheritance and Operation Names” 
“Mapping for Attributes” 
“Mapping for Constants”
“Mapping for Basic Data Types” 
“Mapping Considerations for Constructed Types”
“Mapping for Structure Types” 
“Mapping for Union Types” 
“Mapping for Sequence Types” 
“Mapping for Strings” 
“Mapping for Wide Strings”

“Mapping for Fixed” 
“Mapping for Arrays” 
“Mapping for Exception Types” 
“Implicit Arguments to Operations” 
“Interpretation of Functions with Empty Argument Lists” 
“Argument Passing Considerations” 
“Return Result Passing Considerations” 
“Summary of Argument/Result Passing” 
“Handling Exceptions” 
“Method Routine Signatures” 
“Include Files” 
“Pseudo-objects” 
“Mapping for Object Implementations” 
“Mapping of the Dynamic Skeleton Interface to C” 
“ORB Initialization Operations”




--------------------------------------------



Sample of the pdf document :







Requirements for a Language Mapping

All language mappings have approximately the same structure. They must define the means of expressing in the language:

• All OMG IDL basic data types
• All OMG IDL constructed data types
• References to constants defined in OMG IDL
• References to objects defined in OMG IDL
• Invocations of operations, including passing parameters and receiving results
• Exceptions, including what happens when an operation raises an exception and how the exception parameters are accessed
• Access to attributes
• Signatures for the operations defined by the ORB, such as the dynamic invocation interface, the object adapters, and so forth.



A complete language mapping will allow a programmer to have access to all ORB functionality in a way that is convenient for the particular programming language. To support source portability, all ORB implementations must support the same mapping for a particular language.


Basic Data Types

A language mapping must define the means of expressing all of the data types defined in “Basic Types” on page 3-23. The ORB defines the range of values supported, but the language mapping defines how a programmer sees those values.

 For example, the C mapping might define TRUE as 1 and FALSE as 0, whereas the LISP mapping might define TRUE as T and FALSE as NIL. The mapping must specify the means to construct and operate on these data types in the programming language............








 Click here for  Download PDF / FREE

C tutorial : C Language Mapping





0 commentaires: