Browse Prior Art Database

Automatic Generation of Interfaces to Smalltalk

IP.com Disclosure Number: IPCOM000111461D
Original Publication Date: 1994-Feb-01
Included in the Prior Art Database: 2005-Mar-26
Document File: 2 page(s) / 84K

Publishing Venue

IBM

Related People

Arroyo, JA: AUTHOR [+3]

Abstract

A method is presented called GeneratedModels, for automating the task of interfacing to functions in a target software system from a source software system. This method is especially useful when the source and target software systems are implemented using different technologies.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Automatic Generation of Interfaces to Smalltalk

      A method is presented called GeneratedModels, for automating
the task of interfacing to functions in a target software system from
a source software system.  This method is especially useful when the
source and target software systems are implemented using different
technologies.

GeneratedModels are software objects that perform the following
functions:

1.  GeneratedModels contain all the knowledge about the interfaces to
    the target system.  For target systems implemented as entry
    points in a Dynalink Library (DLL), for example, this knowledge
    would include all constants and structures required by the
    interface and all the entry point names with the parameter and
    return result types.

2.  GeneratedModels obtain this knowledge automatically wherever
    possible by reading existing descriptions of interfaces, for
    example, in source language files, linker files, object files,
    and data dictionaries.

3.  GeneratedModels generate whatever structures, descriptions,
    source code etc., in the SOURCE implementation system that are a
    necessary interface with the target system.  For example, for the
    Smalltalk system, GeneratedModels would generate parts that can
    be placed on the Application builder palette, have attributes
    that correspond to datastructures passed to COBOL programs, and
    have actions that execute code within the DLL from the
    Application Builder.

      The method to this involves an entity called a GeneratedModel.
For Smalltalk, a GeneratedModel contains the following definitions:

1.  Definitions for any constants required for the foreign code.

2.  Definitions for any datastructures required for the foreign code.

3.  Definitions for any code entrypoints that the foreign code
    contains.

4.  The name of the DLL that contains the code.

Note that other languages may require more or less interfacing
information.

      The GeneratedModel is created by parsing the definitions from
an include file for that foreign code.  For example, in the C
programming language under the OS/2* operating system, Dynalink
Libraries typically have their interface documented in an H file.
This file contains the following:

1.  #define statements that represent constants,

2.  structs and typedefs th...