US20040226004A1 - Adaptive interface for a software development environment - Google Patents

Adaptive interface for a software development environment Download PDF

Info

Publication number
US20040226004A1
US20040226004A1 US10/860,371 US86037104A US2004226004A1 US 20040226004 A1 US20040226004 A1 US 20040226004A1 US 86037104 A US86037104 A US 86037104A US 2004226004 A1 US2004226004 A1 US 2004226004A1
Authority
US
United States
Prior art keywords
tree
selector
adi
platform
platforms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/860,371
Inventor
Daniel Oldman
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US10/860,371 priority Critical patent/US20040226004A1/en
Publication of US20040226004A1 publication Critical patent/US20040226004A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Definitions

  • the invention concerns software development environments generally and more specifically concerns software development environments for writing code that will be ported to a number of different platforms.
  • ABSI application binary interface
  • Some vendors of UNIX platforms produced utilities which accommodated a program written to run on one platform so that it would run on another platform with the same underlying computer architecture. Examples are DG/UX®'s Application Capture Option, IBM's Linux Application Execution Environment, and an Open Source package called Lxrun.
  • these utilities work with a given application program, they solve the portability problem for the application program that they work with and the platforms that they are designed for. There is, however, no guarantee that the utility will work with the given application program, or that if it works, that the next version of the application will work. If the utility doesn't work, it gives the programmer no help in getting the application program itself to work.
  • the object of the invention is attained through an improved program development environment in which a program which is to execute on a plurality of platforms can be developed.
  • the program development environment includes a compiler for producing object code for a given one of the different platforms from source code for the program.
  • the program development environment is improved by adding a database that describes the platforms and differences between the platforms.
  • the database is accessible to and interpretable by the compiler and the compiler responds to the source code and the database by indicating whether any of the source code is incompatible with any of the differences described in the database.
  • the program development environment may include a run-time test library that is bound to an application binary produced from the object code and responds to an execution of the application binary by testing whether the application binary is incompatible with any of the differences described in the database.
  • the program development environment may further include a compatibility run-time library for each of the platforms that is bound to the application binary produced for the platform and that performs conversions necessary for compatibility when the application binary for the platform is executed. Additionally, the program development environment may include platform proof code for different ones of the platforms, with the platform proof code for a platform being executed on the platform to determine whether the database correctly describes the platform.
  • the database, the run-time test library, the compatibility run-time library, and the platform proof code are all produced by a meta-compiler from a description of the platforms including the differences between the platforms.
  • the language compiled by the metacompiler includes selector names associated with platform and selector constructs that use the selector names to specify bindings of the program constructs for the platforms with which the selector names are associated.
  • the metacompiler makes a tree structure which include tree selectors that represent the selectors, a tree selector specifying a set of bindings for a construct that produce unambiguous readings of the definition of the construct. The meta-compiler then uses the unambiguous readings to generate the database from the description.
  • FIG. 1 is an overview of the novel programming environment disclosed herein;
  • FIG. 2 is an overview of how the novel programming environment is used to port a program to run on a number of platforms that share a hardware architecture
  • FIG. 3 is an overview of how the novel programming environment is used to port a program to run on a number of platforms that differ in hardware architectures;
  • FIG. 4 shows an example AdI Meta-language source file and the corresponding link-time and runtime source code generated by the AdI Meta-compiler
  • FIG. 5 shows example Platform Proof source code generated by the AdI Meta-compiler from the source in FIG. 4;
  • FIG. 6 shows another AdI Meta-language source which illustrates a case of variation among supported platforms and the header file that would be generated by the Meta-compiler on that source;
  • FIG. 7 shows the source code for a program being compiled in the AdI environment and error messages output as a result of compilation in the AdI environment
  • FIG. 8 shows a variation on FIG. 3 where the user chooses to uses the AdI technology in such a way that the small but perceptible performance overhead of the AdI runtime library is eliminated;
  • FIG. 9 is an overview of the AdI meta-compiler
  • FIG. 10 is the BNF for forms in the AdI language
  • FIG. 11 is the BNF for the selector form in the AdI language
  • FIG. 12 is an example of a selection set definition, of a selector, and the results of application of the selector
  • FIG. 13 is the BNF for the system file form in the AdI language
  • FIG. 14 is the BNF for a selection set definition form in the AdI language and an example of a hierarchical selection set
  • FIG. 15 is the BNF for the platform-feature-set-prop form in the AdI language and an example of a platform-feature-set-prop;
  • FIG. 16 is an example of a selection set, selectors in type definitions, and a function interface that uses the type definitions;
  • FIG. 17 is BNF that describes the extension to the selection-pred form used in t-sel forms and an example of a t-sel;
  • FIG. 18 is another example of a t-sel showing the readings produced from the t-sel
  • FIG. 19 shows the t-sel which analysis produces from the code of FIG. 16 and the readings produced from the t-sel;
  • FIG. 20 shows an example index page fragment from a report comparing two operating systems
  • FIG. 21 shows an example report fragment showing simple non-conflicting declarations
  • FIG. 22 shows an example report fragment showing a declaration that differs between the two operating systems
  • FIG. 23 shows an example report fragment that is somewhat more complex.
  • Reference numbers in the drawing have three or more digits: the two right-hand digits are reference numbers in the drawing indicated by the remaining digits. Thus, an item with the reference number 203 first appears as item 203 in FIG. 2 and an item with the reference number of 1801 first appears in FIG. 18. Elements in one FIG. that appear in a later FIG. retain their original reference numbers. Thus, item 119 in FIG. 2 is the same as item 119 in FIG. 1.
  • the following Detailed Description has two parts.
  • the first part describes the adaptive interface and how it reduces the effort of porting; the second part describes a system and method for building the adaptive interfaces.
  • FIGS. 1-3 The Adaptive Interface: FIGS. 1-3
  • FIG. 1 shows a software development environment 101 that permits early detection of porting problems.
  • Software development environment 101 makes application binary 113 for development platform 121 ( a ) from application source code 103 , which is written in a high-level language.
  • the development environment includes a compiler 107 which is specific to the high-level language in which application source 103 is written and to the development platform 121 upon which application source 103 is being developed. Compiler 107 compiles application source 103 to produce application binary 113 , which will execute on platform 121 .
  • adaptive interface headers 105 and libraries 106 include interface information for all services available on the platforms to which the program being made from application source 103 is to be ported.
  • the platforms in this example are 121 ( b . . . d ) in addition to platform 121 ( a ), shown in FIG. 2.
  • the descriptions are in a form which permits compiler 107 to read and respond to them in the same fashion in which compiler 107 responds to the header and library files which are normally used in the compilation of source code.
  • compiler 107 compiles application source 103 , it responds to the code in application source 103 and to headers 105 and libraries 106 by producing a report 109 which makes a list 111 that indicates for each of the platforms for which there is a description in headers and libraries 105 whether there are any potential porting problems for the platform.
  • compiler 107 is a completely standard compiler for the programming environment 121 ( a ) that application binary 113 is to execute on.
  • Compiler 107 includes mechanisms for defining compile-time symbol names and outputting those names in diagnostic messages.
  • the AdI headers and libraries 105 use these mechanisms to define compile-time symbol names in such a way that if they are used in a non-portable way, they will appear in compiler diagnostic messages with the spelling of the symbol name containing a message about the non-portable usage. (See item 608 in FIG. 6 for an example.)
  • compiler 107 may be specially adapted for use in software development environment 101 and may use special mechanisms to make report 109 .
  • software development environment 101 includes adaptive interface run-time test library 117 .
  • Application binary 113 is bound to run-time test library 117 before it is executed and run-time test library generates its own report 109 indicating any problems it finds.
  • Test library 117 is designed to use the actual runtime library for the platform and is coded to only monitor, not modify the behavior of functions belonging to the actual run-time library.
  • Adaptive interface run-time library 119 is a library of routines that deal at run time with certain portability problems such as data conversions.
  • report 109 has made a programmer aware of a portability problem, he or she has two immediate courses of action: either code around the problem or drop the deficient platform from the list of platforms the application is to be ported to. This allows the programmer to move on, but it also gives the programmer (or the programmer's manager) an early warning that allows them to deal with the discovered portability problems without holding up development. They can, for example go to the platform supplier and attempt to get an enhancement. There may also be a way of inventing a portable alternative that can be added to the adaptive interface software development environment. AdI thus gives early warning of porting problems and supplies a mechanism for managing porting issues. It does not attempt to solve all porting problems or force all programs into a limited common model.
  • FIG. 2 shows a single binary application in production on multiple platforms with the same computer architecture, but different operating systems.
  • the new platforms are 121 ( b . . . d ), the same platforms that were targeted in FIG. 1.
  • Each platform has a unique runtime library ( 119 and 219 ( b . . . c )) that has an identical binary interface from the application side, but separate translations from that interface into what is expected in the underlying OS.
  • the testing library 117 is not present here. It was only used during testing.
  • FIG. 3 shows how AdI is used to produce production copies of an application in a different situation.
  • FIG. 3 is a continuation from FIG. 1, but in this case the underlying computer architecture is different across platforms or this mode is used because the user wishes to minimize the AdI runtime overhead.
  • platform 305 ( a ) has the AIX operating system and the IBM PowerPC® hardware architecture
  • 305 ( b ) has the LINUX operating system and the PowerPC® hardware architecture
  • platform 121 ( d ) has the LINUX operating system and the Intel Pentium® processor architecture as in FIGS. 1 and 2.
  • the programmer has to recompile application source 103 for each hardware architecture. Initial development and testing are done using AdI on one platform, just as before.
  • AdI runtime library 319 ( c ) may be different from the library 219 ( d ).
  • the former may have a binary interface that more closely matches the Linux system than the latter whose binary interface is designed to work on multiple OS's.
  • the programmer can also compile for each hardware architecture in the same fashion as shown for the single hardware architecture in FIG. 2.
  • the programmer could compile for platforms 305 ( a ) and 305 ( b ) as shown in FIG. 2 and then compile separately for platform 121 ( d ).
  • FIG. 8 shows a variation of FIG. 3 where as much of the OS headers and libraries as possible are used to absolutely minimize the overhead of the AdI runtime libraries.
  • AdI headers 105 and libraries 106 which are involved in the compilation are AdI-unique functions that were invented to solve particular porting problems.
  • AdI offers programmers who are porting an application to a number of platforms the following advantages:
  • the Adaptive Interface solves this problem by using a special-purpose programming language called the AdI Meta-language.
  • the language is designed for the particular problems of describing an interface that varies across multiple platforms (and varies across multiple versions of the same platform).
  • the Adaptive Interface system also provides a compiler that transforms this source into the AdI programming environment objects, with the aid of platform-specific development tools such as compilers and linkers. See FIG. 9.
  • the first three of the generated sets of components illustrated in FIG. 9 are the same components described above.
  • the fourth, Platform Proof Source 901 is a set of files that the AdI Meta-compiler generates that are used to aid in writing correct Meta-language source.
  • the Platform Proof Source is a set of programs and a build/run make file. The programs are constructed to test the consistency between what was encoded in the Meta-language source for every platform and what the platform actually supplied. Executing the build/run make file (by invoking the Gnu make utility) on each platform will attempt to build and run the test programs. If they correctly build and run then the AdI Meta-language source was consistent with the platform. If not, the meta-language was inconsistent in some way such as naming a function that did not exist or defining a macro constant to be a wrong value.
  • FIGS. 4 and 5 Examples of ADI-Generated Headers and Source Code: FIGS. 4 and 5
  • header files and source code generated by the AdI Meta-compiler are from a version of the environment which is used with a C compiler, possibly the Gnu C compiler, on a platform running the Unix operating system.
  • the header files and source code consequently follow the conventions of the C language, the Unix operating system, and the Gnu C compiler under appropriate conditional compilation. In embodiments for other environments, the header files and source code would follow the conventions of those environments.
  • an AdI source file called module1.m 401 consists of a description of the header file t1.h and the interface definition for a single function fun1. This header file and its one function are written assuming that the file and its function description are provided on all platforms that are supported by the programming environment generated from this source. (See FIG. 6 for an example of a restricted definition.)
  • the AdI Meta-compiler converts the source 401 into C-language components which contribute (with or without further processing) to the four sets of components illustrated in FIG. 9.
  • the header file include/t1.h in the AdI headers 105 that the AdI Meta-compiler generates from the description.
  • the lines at 405 protect the header from accidental reinclusion.
  • the #include at 407 includes a header file which defines a common set of definitions for all compilations in the programming environment.
  • the lines of code at 409 and 412 rename fun1 to a name, _AdI_fun1, which is unique to the programming environment and permits the programming environment to insert logic for referencing the underlying system function fun1 in its own runtime and the platform proof code.
  • the code at 412 takes advantage of a special feature of the Gnu C compiler (and possibly others that have a similar facility), to rename the function's link-time name without changing its source name. This is cleaner because it avoids confusing the user when debugging a program. If such a facility is not available, the code at 409 accomplishes the same thing with the more standard, but less desirable macro define facility.
  • the _AdI_EXTERN symbol labeled 411 is a macro invocation that declares the function to be external in a way that permits header 403 to simultaneously support the C and C++ languages.
  • the link-time source code 413 generated by the AdI Meta-compiler is shown. Shared libraries used at link time tell the linker the names and other information needed at link time of functions and variables that the runtime-equivalent of the library will provide. This code provides the information needed by the system linker to reference these functions from an application binary such as 113 .
  • the #include statements add the source code that helps in implementing the AdI programming environment.
  • the link-time source contains such an _AdI_stub_function invocation for every function that has been declared in the programming environment. Note that the modified name of the function is used because the function's interface declaration 409 , 411 , and 412 renamed all fun1 references to _AdI_fun1.
  • the source code 413 is converted into binary form once for every platform where it is intended to be used by invoking a make script that was generated by the AdI Meta-compiler on each platform.
  • the runtime source code generated by the AdI Meta-compiler from source 401 is shown at 417 .
  • the module again includes the AdI implementation and the AdI run time tools at 418 ; it also includes the underlying system header file at 419 .
  • the code itself consists of the single line shown at 420 .
  • the line, _AdI_jumpfcn(_AdI_fun1,fun1) specifies that the compiler generate assembly language instructions which cause any calls to _AdI_fun1 to redirect to the underlying system function fun1. No more is required here because fun1 with the interface defined in source 401 is available in all of the platforms with an identical interface.
  • the generated run-time source would deal with those differences, for example, by including code which changed the order of the arguments or making data type conversions as required for the various platforms.
  • code is free to call on other system and AdI-environment-specific functions to perform its operation. In cases where this is a new abstraction, it will not call an underlying function since it does not exist.
  • FIG. 5 shows platform proof source 501 that is compiled and run to perform the platform proof for AdI meta-source 401 .
  • Platform proof source 501 is thus an example of AdI platform proof source 907 .
  • platform proof source 501 includes the header t1.h for the platform that source 401 is being ported to.
  • the actual verification is performed by the function _AdI_prove( ) 505 , which is called by the main procedure that is included in every compiled C program and that is called by the operating system to begin the program's execution.
  • the function sets a test count variable to 0 at 506 and then, as shown at 507 , assigns the address of fun1 (which is expected to be defined by all platforms in t1.h) to the function pointer _AdI_x 508 .
  • the program code specifies that the pointer variable, _AdI_x, be to a function which has the interface which the description used to generate platform proof source 501 indicates is the interface of fun1 on all of the platforms. If the description is incorrect and fun1 has a different interface on the platform, the compiler will generate an error message for assignment 507 indicating that the assignment is improper, thus indicating an error in the description.
  • the statement at 509 simply assigns 0 to the pointer so that the compiler does not generate an error message indicating that no value has been assigned to the pointer.
  • the statement at 510 increments the test count (setting it to 1 in this case), indicating that the test was performed.
  • the part of the _AdI_prove function with the reference number 513 is a set of conditionally-compiled statements that ensure that the appropriate number of individual tests are performed for each platform. In this example, all platforms have the same number of tests. In examples where there are differences among platforms, the number of tests may vary. This check of the test number is a sanity check that the compiler emits to ensure that all generated assertions are appropriately checked. If the compiler and build/test scripts are correct the number of tests will always be right.
  • the description of the platforms indicates that the function fun1 is available on all of the platforms; consequently, it does not become apparent until the platform proof stage that fun1 is was in fact available on a limited number of the platforms.
  • the description has been corrected to include a selector form 605 which indicates that fun1 is only available on operating systems whose platform description in the AdI meta-language defines the selector name tos2.
  • a selector name is a name that is used to select among alternative structures in the various platforms.
  • tos2 is defined for the target platform targ2, but not for the target platform targ1, and is thus expected on platform targ2 and not on targ1.
  • the AdI meta-compiler compiles description source 601 to produce generated header 607 along with other components that are not shown here.
  • the portion of generated header 607 which is different from generated header 403 is shown at 608 .
  • Conditional compilation directive 609 indicates that if the program that includes the header t1.h is being ported to targ1 as well as targ2, an error message will be output to report 109 indicating that fun1 is not defined for targ1 if the function fun1 is referenced by the application program. That the error message should be output for targ1 is indicated at 611 and 613 .
  • 611 and 613 show two techniques for outputting the error message.
  • the technique shown at 611 assumes that a macro _AdI_compiler_integration has been predefined for the compiler being used to compile the program being ported.
  • the macro is executed in a preprocessing step, and as a result, the preprocessed header includes the special form _AdI_function_missing.
  • the special form instructs the compiler to both type check invocations of functions that the AdI description indicates are of interest and to output a message when a function is not available for a particular target and it is referenced.
  • the technique shown at 613 presumes no modification whatever of the compiler to accommodate the AdI development environment.
  • the #de fine directive at 613 defines fun1 as a macro whose value is a symbol whose name is the error message AdI_error_fun1_is_not_defined_on_targ1.
  • the symbol is otherwise not defined, and when the object file created by the compilation is linked, the undefined symbol will result in an error message from the linker which will output the name of the undefined symbol, and thus output the AdI error message.
  • FIG. 7 shows what happens when a user of the AdI program development environment compiles a program that includes an invocation of the function fun1.
  • the source text for the program is shown at 701 ; the function is invoked in the second line of the function main( ) at 702 .
  • To compile in the AdI environment one places the AdI bin directory at the front of PATH in the shell environment and then invokes the compiler normally.
  • the AdI bin directory includes a script that defines preprocessing macros that redirect explicit and implicit references to standard headers and libraries and indicates to the compiler the targets one is interested in. If the user indicates no particular interest, AdI assumes that the compilation is for all supported platforms.
  • FIG. 703 shows compilation with the standard Gnu C compiler.
  • the shell command for the compilation is at 705 ; since no target is specified, AdI assumes that both available targets, targ1 and targ2, are intended.
  • the shell command for linking the compiled object code is at 707 ; because there was no definition for fun1 in the target, the compiler defines the error message symbol as shown at 613 , and at link time, because the error message symbol is otherwise not defined, the linker error message at 709 contains the symbol's name, and thus the error message.
  • 711 shows compilation with more integration; here, a properly-labeled AdI error message is output during compilation. With either technique, the user is made aware while compiling or linking the program on a single platform of the existence and nature of any porting problems on other platforms that are captured by the AdI description for the platforms.
  • AdI source files 903 are written in a preferred embodiment in a language called the adaptive interface or AdI language.
  • the source files are then compiled by a compiler 905 for the AdI language to produce SDE header files 105 , SDE link-time libraries 106 , SDE run-time libraries 119 , and platform proof source code 907 .
  • compiler 905 will be termed herein the AdI meta-compiler.
  • the preferred embodiment of SDE 101 is designed to port programs written in the C or C++ languages; this embodiment of the AdI language thus looks like a combination of the well-known Lisp and C programming languages.
  • the Lisp-like components provide a high-level organization for a collection of chunks of C declarations and code. In other embodiments, the chunks and declarations would be in the language compiled by compiler 107 .
  • FIG. 10 shows the basic structure of the language.
  • the AdI language is described in a BNF grammar styled after the well-known BNF grammar used in the ANSI C standard. Syntactic categories (nonterminals) are indicated by italic type, and literal words and character set members (terminals) by bold fixed-width type. A colon (:) following a nonterminal introduces its definition. Alternative definitions are listed on separate lines. An optional symbol is indicated by the subscript suffix “opt”.
  • AdI source code is made up of a list of forms; each form is surrounded by parentheses, as shown at 1003 .
  • the parentheses may contain form-parts, including other forms.
  • Each AdI source file 903 defines a header file 105 and source code that contributes to one or more of the libraries 106 and 119 and the platform proof source code 907 associated with the header file 105 .
  • Also necessary for compilation of an AdI source code file 903 is a system file.
  • the system-file is a set of parameters that are common to all compilations for a given set of platforms.
  • the file defines a collection of names that are valid in other sources as well as specifying one or more platforms.
  • a single platform is designated as the reference platform and a set of the platforms, optionally including the reference platform, are selected as target platforms.
  • the reference platform defines the source interface for the generated SDE.
  • the targets are the platforms that are supported to run applications built for the SDE.
  • FIG. 11 shows the BNF 1101 for the selector form.
  • the selector form is a kind of conditional compilation that can control the interpretation of source in almost any context. Unlike traditional conditional compilation that is performed in a pre-processing pass over the source code, the selector forms are part of the syntax managed by the compiler. In fact, the compiler compiles all combinations of conditional compilation that are requested in the platform-def forms in the system file for all targets at once.
  • Each selector-name 1109 in the above grammar is a name that belongs to any of a number of hierarchical sets of names defined in selection-set-def forms in the system file. Some restrictions apply and will be explained later.
  • AdI metacompiler 901 selects at most one of the choices offered by the selector-choices in selector 1103 , with the selection being made based on the context and a left-to-right reading of the selector choices.
  • the selected choice is the first one to have a selection 1107 that evaluates to true in the given context or, if none of the names evaluates to true, the else choice, if one is present.
  • the forms that are selected syntactically replace the entire selector form and are interpreted as if the selector had not been supplied.
  • FIG. 12 gives an example of the use of selectors.
  • the selectors in FIG. 12 are from an AdI source file that is being used to port software to platforms running the AIX®, Linux®, DG/UX®, and UnixWare® operating systems. These operating systems are all variants of the original UNIX® operating system and consequently use many of the same names for literals, albeit at times with different values.
  • the following table shows the C-preprocessor macro names and values for the various platforms: Literal name Operating system Defined?
  • RTLD_LAZY is defined and has the value 0x001 in all of the platforms, while RTLD_GLOBAL is defined for all platforms but its value varies and RTLD_LOCAL is defined only for UNIXWARE and AIX.
  • the names used in the selectors of the example are defined in the system file as shown at 1201 .
  • a set of define-def forms that are used to create macro definitions.
  • the define-def forms contain the selectors.
  • Each selector has a selection predicate 1109 .
  • the selection-predicate in BNF 1101 is composed of names, operators and parentheses that evaluate to a Boolean value each time the compiler evaluates it.
  • the Boolean value of a selector name is determined by the platform chosen for the reading context of the compiler. A name is true if it appears in a platform-select-prop 1201 in the platform's platform-def. It is false if it does not.
  • selector 1205 there are two selection predicates, the selector name linux and the AdI language-defined predicate else, which has its usual meaning.
  • Selector 1205 thus indicates that when the target platform has the LINUX operating system, RTLD_GLOBAL will have the value 0x0001 and otherwise the value 0x0002.
  • Selector 1207 illustrates the use of the OR logical operator.
  • the list of selector names indicates that if either of these platforms is the target, RTLD_LOCAL will have the value 0x008; since there are no selector predicates for RTLD_LOCAL for the other platforms, RTLD_LOCAL is undefined for those platforms.
  • application source 103 contains the literal RTLD_LOCAL and is compiled by compiler 107 with an AdI header file 105 made from an AdI source file 903 containing selector 1207 and the target is a LINUX or DGUX platform
  • report 109 generated during the compilation will include a warning that RTLD_LOCAL is not defined for the platform.
  • the system-file is a set of parameters that are common to all compilations for a given set of platforms.
  • the parameters defined in the system file are selector names.
  • the system file also relates selector names to platforms.
  • FIG. 13 shows BNF 1301 for the system file.
  • the file defines a collection of names that are valid in other sources as well as specifying the reference platform that selects the source and binary interface for the generated SDE.
  • selection-set-def 1303 which defines the set of names that may be used in selectors
  • platform-def 1305 which defines the reference and target platforms.
  • FIG. 14 shows BNF 1401 for selection-set-def 1303 and an example selection set definition 1407 .
  • a selection-set-def defines a hierarchical enumeration of names 1405 that are used in selector forms. Like C enumerations, each selector-name must be unique, both within the selection-set-def and with respect to other selection-set-def forms.
  • the selection-set-def forms a hierarchy of names. Any name defined with an associated sub-selector is an abbreviation for the set of all names defined in the sub-selector.
  • the top-level name in a selection-set-def is called its root selector name.
  • a name that does not have an associated sub-selector is called a leaf selector name.
  • Leaf selector names are used to identify specific implementations, to name properties that further specify an implementation, or to name feature sets that define concurrent support in a library that is under control of conditional compilation.
  • the hierarchy of names is shown at 1411 in example selection set definition 1407 .
  • unix at 1409 is the root selector name in definition 1407 ;
  • linux at 1413 is the root selector name in subhierarchy 1411 ;
  • bobx at 1415 and the other names in 1411 are at the bottom of the hierarchy and are thus leaf selectors.
  • the following table shows abbreviation of names at a lower level of the hierarchy defined by definition 1407 by names at a higher level.
  • Selection set names live in a separate namespace from other identifiers. There would be no conflicts with using the names main, typedef, or selection-set. A reference to a selector-name may not appear until after the selection-set-def form that defines the selector-name.
  • the selector forms are syntactic entities that control the interpretation of the AdI source in a context sensitive manner. That interpretation is termed herein a reading of a given form. If the reading is in the context of the reference platform, then it is called a reference reading. If it is in the context of a target platform, it is called a target reading.
  • platform-def forms 1305 Each platform-def form defines the name for an abstract “platform” which is a collection of settings and controls that apply when the platform-name is designated as the reference or one of the targets of compilation. Each platform-name must be unique among all platform names. Platform names are in a separate namespace. References to platform names do not appear anywhere in the AdI language grammar. They are the keys that the compiler uses to control interpretations and select subsets out of AdI source 903
  • the part of the platform-def which is of particular interest in the present context is the platform-feature-set-prop, which specifies the feature sets supported on the platform specified by the platform-def.
  • a feature set is the set of variations in an interface for a service that are particular to the platform described by the platform-def.
  • FIG. 15 shows the BNF 1501 for platform-feature-set-prop and an example 1507 which shows two selection set definitions 1407 ( a ) and ( b ) and a portion of a platform-def 1509 which contains feature set definitions for that platform for the selector names defined in the selection set definitions 1407 ( a ) and ( b ).
  • platform-feature-set-prop introduces a feature set that is supported on the platform.
  • BNF 1501 defines platform-feature-set-prop as the feature-set keyword followed by a list of feature-definitions.
  • a feature-definition has a name and a predicate-prologue. The name must be a leaf selector name and associates that selection set member with this feature set. Each selector-name in a platform-feature-set-prop must be from the same selection set.
  • the predicate-prologue has two forms. It is a name for the most common case, and a c-predicate c-prologue pair for unusual circumstances.
  • the c-predicate is a string that holds a preprocessor expression that must be true on the defined platform during verification and build.
  • the c-prologue is a preprocessing code sequence that is inserted ahead of all compilation if this platform is used as a reference platform.
  • More than one platform-feature-set-prop form may appear in a platform-props sequence.
  • the AdI compiler assumes that all features are independent and handles all combinations of all defined feature sets. A feature set must be complete. That is, one of the predicates must always be true or an error will be reported. The first feature-definition in a platform-feature-set-prop is the default for this feature in the SDE.
  • the selection set definitions 1507 ( a ) and 1507 ( b ) define four leaf selectors 1415 : bsd-signals-off, bsd-signals-on, large-files-off, and large-files-on.
  • the platform-def 1509 in which the two platform-feature-set-props 1511 ( a ) and ( b ) appear is a platform definition for a platform that is running DGUX, a version of the UNIX operating system, on a processor that has the IA-32 architecture.
  • the BSD_SIGNAL_FLAVOR C-preprocessor macro in an application program indicates whether the application program presumes the signal behavior of the BSD version of the UNIX operating system or the default of System V signals behavior, while the value of the _FILE_OFFSET_BITS macro in the source code indicates whether the program being compiled assumes that files can have 64-bit offsets or that files can have 32-bit offsets.
  • the feature set is used in two aspects of the AdI SDE. First, if the dgux-ia32 platform is chosen as the reference for compilation, then the two macros, BSD_SIGNALS_FLAVOR and _FILE_OFFSET_BITS, are part of the programming interface to control those features for all platforms.
  • the AdI system performs a sanity check on all compilations. The sanity check ensures that one and only one of the c-predicate forms is true and that the selector name from the feature-definition that was selected is defined in a feature-definition for every platform requested by the user. That is, that the feature-set is correctly controlled and that the selected feature variant is supported on all requested platforms.
  • the second use of the feature set is to ensure that the feature is properly controlled when creating library components on each platform.
  • AdI meta-compiler 905 is organized into three phases:
  • Reading Converts AdI language source files 903 in ASCII form into an internal tree structure.
  • Analysis Checks the trees for correctness, resolves names to definitions and organizes information for simpler access.
  • Code Generation Genes C-language source, make files, documentation, installation scripts, and other miscellaneous components.
  • the make files are used to convert the generated source into the AdI SDE's binary components.
  • Reader 909 reads AdI source files 903 and produces a tree representation of them which appears in FIG. 9 as tree structure 917 ; Analyzer 911 then processes the tree representation to improve the efficiency with which it represents information, and code generator 913 then uses tree structure 917 as modified by analyzer 911 to produce the components which make up the ADE programming environment.
  • Report generator 915 uses tree structure 917 to generate reports that can be used by end-users of the SDE to see the set of supported services and any differences among the supported platforms.
  • AdI metacompiler 905 uses standard techniques in making, modifying, and using tree structure 917 . In addition to the tasks handled by standard compilers, however, the AdI compiler must manage the computational complexity of performing a “simultaneous” compilation of many dozens of target platforms.
  • FIG. 16 shows the description 1601 of pwrite_wchar in AdI source files 803 .
  • the selection sets 1407 that define the selector names for the 32- and 16-bit wide character sizes and 32- and 64-bit file offsets respectively. These definitions are in the sys-file used with AdI source files 903 .
  • the type-defs for the wchar_t and off_t types are in the part of the AdI source file 903 that describes the C source code header file sys/types.h.
  • the wchar_t type definition includes a selector with the wchar32 and wchar16 selector names and the off_t definition includes a selector with the off32 and off64 selector names. All of these definitions are in the sys-file.
  • the part of the AdI source file 903 that describes the C source code header file unistd+.h, which includes the interface definition for the function pwrite_wchar.
  • the AdI environment must of course make sure that the use of the interface for pwrite_wchar in application source 103 is correct for each of the platforms to which the application source is to be ported.
  • feature set A with 2 feature alternatives
  • a feature set B with 3 alternatives
  • the first step in finding a solution to the complexity problem is to recognize that most AdI declarations are identical on all platforms and that feature sets typically interact with a small proportion of the entire library interface. If we keep track of where the differences are, we can avoid retracing steps that will yield the same answer.
  • AdI meta-compiler 803 Within AdI meta-compiler 803 's internal tree structure is a data structure called a t-sel (tree selector) that is a direct analog of the language's selector form. The presence of a t-sel in the tree indicates a point of variation that is context-dependent. During the analysis phase, each selector-choice must be analyzed within its appropriate context to check it for correctness and to gather context-dependent information that is needed later.
  • t-sel tree selector
  • the information is recorded in a new selection-predicate expression form called sel-factors-expr whose grammar is shown at 1701 in FIG. 17.
  • the predicate is an existing predicate if this form is replacing a predicate in an existing t-sel choice, or is T (true) if this is in a new t-sel.
  • the isel-groups 1702 are a list of independent selection set groupings. That is, each group holds sets of selector-names, where each set of names are from the same selection-set-def form and no two groups have names from the same selection-set-def form.
  • the contained sets are groups of one or more names that are uniquely associated with each other in t-sels in the original predicate (if present) and the tree of the choice associated with this predicate.
  • associated is meant that the names were all together in or expressions.
  • uniquely associated is meant that no names were in other groupings.
  • FIG. 17 shows how a selector 1713 including factors form 1715 for wchar_t and typedef form 1607 results from meta-compiler 905 's analysis of form 1607 .
  • the AdI language's lisp-like syntax allows the internal tree structure to be isomorphic with the source form. This conveniently allows us to represent the internal form in the same notation as source code.
  • the predicate 1714 in the factors expression is T because it is a new t-sel.
  • There isel-group 1716 since the only contained t-sel just mentions members of the wchar_size selection set. There are two sets of one member each within the group reflecting the independent appearance of the wchar32 and wchar16 values.
  • the purpose of factors expression 1715 is to provide sets of bindings that produce an unambiguous reading of the contained tree that logically eliminates all t-sels in the contained tree.
  • the contained typedef can be read as follows:
  • the AdI source files 903 contain a selection set S of 7 selector names a, b, C, d, e, f, and g, defined at 1801 . They also contain the selector 1803 , which relates the selector names to members of an enumeration type.
  • selector 1803 defines the enumeration colors whenever the selection set S values a, b, c, d, or e are true.
  • selectors There are two selectors within the enumeration; one of them relates the names a, b, and c to the enumeration value representing Red; the other relates the names c and d to Blue and the rest of the names, i.e., a, b, and e to Black. (The names f and g are excluded above so are not part of the else.)
  • AdI meta-compiler 905 analyses selector 1803 , the result is the selector shown at 1805 .
  • the predicate is 1806 (i.e.
  • the bindings in the sel-factors-expor allow the compiler to use a set of tree navigation primitives that can traverse the sub-tree skipping over all contained t-sel structures.
  • the traversal works because the expressions are composed of selector-names and Boolean operators that can be evaluated as constant expressions once the names are bound.
  • the t-sel skipping navigation primitives are more than a simple convenience.
  • the AdI language is very liberal in allowing a programmer to place selector forms in many convenient places. If the compiler had to worry about a t-sel at every possible location, its logic would get very complicated. It does not have to worry about every possible t-sel once the tree is initially checked in the analysis phase.
  • the passed function is called once passing it the sub-tree. If it is a t-sel, then the function iterates through the t-sel choices, binding the selection context to the selection and calling the function with the forms of the selector-choice.
  • the analysis phase logic knows that there is a possibility of a t-sel in the type description position of a typedef form. It sets up a function to analyze a type description and passes the function to a general function that analyzes potential t-sels. If that function discovers that the root of the type description tree is a t-sel than it checks the t-sel for correctness and calls the type description analysis function once for each choice with the selection context appropriately bound.
  • the type description analysis function would report a problem when it was called the second time with wchar16 defined in the environment.
  • the analysis phase's error reporting further notes whether the selection environment is restricted for any selection set and if so adds the phrase “when selection-set-root is selector-name” to any messages.
  • the above error would be something like: typedef wchar_t: ill-formed type description “unsigned shot” when wchar_size is wchar16.)
  • the AdI compiler is currently implemented in the Lisp programming language. In Lisp, most primitive operations are implemented as functions.
  • the AdI compiler contains its own set of functions that are analogs of many of the Lisp tree manipulating primitives but operate in a context-sensitive manner when encountering a t-sel. These functions use a naming convention of prefixing a “t” to the name of each analogous function. For example, the t-sel sensitive analog for the Lisp function called identity is tidentity. The identity function just returns its argument with no other effects.
  • the tidentity function looks at its argument and if it is a list with a t-sel in its first position, it traverses the t-sel based on the value of a context variable to select the appropriate component. If not, it just returns its argument.
  • the tidentity function is important in that it provides the basic semantics for the other t-sel-sensitive tree walking operations. Considering the two basic Lisp tree (list) manipulating functions car (a.k.a. first) and cdr (a.k.a. rest) we get
  • the tidentity function only looks for t-sels that are in the beginning of trees (lists). Thus in all contexts
  • the t-sel 1903 has two isel-groups in its sel-factors-expr, one at 1905 and the other at 1906 . These are derived from the analysis phase that introduced t-sels 1907 and 1908 .
  • AdI meta-compiler 905 When AdI meta-compiler 905 generates ADE headers and libraries from the AdI source file containing the code shown at 1901 , the result will be the four different readings for the interface for the pwrite_wchar function shown in the table at 1909 . Unlike the previous example, there would be no exclusive iteration, because all cases are covered.
  • AdI metacompiler 905 reads an AdI system file and a set of AdI source files to produce a set of directories and sources that are then compiled on multiple systems to produce the complete environment. SDE development involves many steps.
  • Compile All source files are passed to metacompiler 905 compiler at once. This allows it to have the global perspective needed to provide makefiles for the rest of the steps.
  • Verify Perform the verification step on changed modules (and modules that have been potentially changed by the changes). This is performed by executing:
  • .TargetT vfy/.TargetT impl/.TargetT # Verify on all targets vfy: vfy/.Target1 .. vfy/.TargetT # Verify on particular targets vfy/.Target1: vfy/.Module1.Target1 .. vfy/..ModuleM.Target1 $(MAKE) -c vfy .Target1 .. vfy/.TargetT: vfy/.Module1.TargetT ..
  • vfy/.ModuleM.Target1 vfy/ModuleM.c module-dependencies $(MAKE) -c vfy .ModuleM.Target1 .. vfy/.ModuleM.TargetT: vfy/ModuleM.c module-dependencies $(MAKE) -c vfy .ModuleM.TargetT # Build the implementation on all targets impl: impl/.Target1 .. impl/.TargetT [This is a duplicate of the vfy section with “impl” replacing “vfy”.] # package: # Clean up clean: rm [lots of stuff]
  • sysfile The pathname of a system file that defines the global parameters for all compilations.
  • reference The name of a platform defined in a platform-def in the system file that will be used as the reference in this compilation.
  • targets If present, a comma-separated list (without intervening spaces) of platform names that will be chosen as the targets for this compilation.
  • the reference platform name may appear in the targets list, but there is no obligation that the reference platform be one of the target platforms. If not present, then all platforms defined in the system file are chosen as targets.
  • module One or more header source modules. Modules are expected to be named with a .m suffix.
  • the results of compilation are a directory full of source code in the gendir.
  • the file: gendir/Makefile is the top-level file used by the Gnu make utility to complete the process.
  • metacompiler 905 runs only on Linux systems. You also need the GNU gcc and GNU make programs for each system that you wish to target.
  • headers contains all header file directories. (Typically just the one called include.)
  • lib contains all the link-time objects (libraries and a few object modules.)
  • rt contains the run-time shared objects that are needed by each target environment. Each object set is contained in a directory whose name is the same as the corresponding target.
  • Each library declared in the system file for compilation contains a sub-directory of the same name (with “lib” prefixed to it).
  • Each library subdirectory in turn has two sub-directories called lib and rt which contain the sources for the link-time and run-time objects for the library.
  • the verification process is controlled by the file prove/Makefile.
  • This command must exist for all defined targets. It sets up the appropriate path environment and performs a command, remotely if necessary.
  • metacompiler 905 can be run in reporting mode.
  • report generator 915 creates ADI reports 919 .
  • reports 919 are HTML pages that present the information in several views that are all reached from the top-level index.html file:
  • Each header is planned to expand to a list of links to header files included in the header and links to the definitions that are contained in the header.
  • the links usually lead down to individual identifiers and the definition or definitions that are associated with them. Identifiers are organized into a flat pool of names, rather than a set of names within header files, to accommodate the fact that a definition is often in different places on different platforms. The location differences are often inconsequential to the user because many headers include others.
  • the comparison table contains links that indicate the nature of the difference between pairs of contexts.
  • the only current comparison type is “dlc” which stands for different local components. Future comparison types will include “different referenced components”, and “different primitive type”.
  • the report generation tools are currently capable of comparing header file include topology and non-function macro definitions between two platforms with one feature-set view.
  • the design of the browsing facilities however, accommodates all C and C++ objects, between many platforms with any number of feature-sets.
  • FIG. 1 Other embodiments may employ an interactive browser program in place of a generic HTML viewer.
  • the interactive browser allows the user to interactively create specific views according to platform and feature set and will hide information that the user is not interested in.
  • FIG. 20 shows an example of a portion of a report 2001 .
  • Report 2001 was generated from a comparison of the header files of the Red Hat 6.2 and Suse 6.1 Linux distributions.
  • the report shows all of the definitions that are present in the Suse 6.1 Linux distribution that are not present in the Red Hat 6.2 definitions.
  • At the top of the report is an index 2003 ; clicking on a letter takes one to the portion of the report that contains terms beginning with the letter.
  • At 2005 are shown the portions of the report for identifiers beginning with “A” and “B” and “C”.
  • FIG. 21 is part of the example report showing simple non-conflicting declarations.
  • At 2101 is a macro that is defined identically in the same place on both systems.
  • At 2102 is a macro that is defined identically in two different locations on the two systems.
  • At 2103 is a macro that is defined identically and is in the same place on both Red Hat 6.2 and Suse 6.1, but also appears at another location on Red Hat 6.2.
  • FIG. 22 is a part of the example report showing a macro that appears in different forms.
  • At 2201 is a table that indicates that there are two different definitions of the name A_ALTCHARSET and providing links to the actual definitions shown at 2202 .
  • the first definition is defined in one place on Suse 6.1, but in four places on Red Hat 6.2.
  • the second definition appears only in Red Hat 6.2.
  • FIG. 23 is a part of the example report showing a more complicated example where there are three different definitions of a symbol.
  • the database that describes the differences in the platform takes the form of a header file.
  • the database would have the form required for the compilers used in those embodiments.
  • the particular forms of the run-time test library, the compatibility run-time library, and the platform proof source code are also strongly dependent on the language, compiler, and conventions of a given programming environment.
  • the form of the AdI language used in the preferred embodiment includes fragments from the C language. In other embodiments, it would include fragments from the language used in those embodiments.
  • the form in which selectors are implemented in the AdI language is only one of many possible forms, and the form of the tree selector used in the meta-compiler is only one of many possible forms.

Abstract

A software development environment that permits early detection of problems that arise in porting a program to a number of different platforms. In the environment, the source code for the program to be ported is compiled together with a set of header files or other database that describes the different platforms. The compiler emits a list of porting problems that the program source code has with respect to the platforms. Also included in the environment are run-time binary code that detects porting problems for the different platforms at run time and a library of run-time routines that deal with particular porting problems. The header files, the run-time binary code for the platform, and the run-time routines are generated by a meta-compiler from a description of the differences between the platforms written in the AdI language. Also generated is platform proof source code which tests whether the description of a platform in the AdI language is correct.

Description

    CROSS REFERENCES TO RELATED APPLICATIONS
  • The present application is a divisional of U.S. Ser. No. 09/672,739, which has the same inventor, title, and assignee as the present application and which is hereby incorporated into the present application by reference.[0001]
  • BACKGROUND OF THE INVENTION
  • 1. Field of the Invention [0002]
  • The invention concerns software development environments generally and more specifically concerns software development environments for writing code that will be ported to a number of different platforms. [0003]
  • 2. Description of Related Art [0004]
  • From the moment the second stored program computer became operational, the people who write software have dreamed of being able to write a program once and have it run correctly on all available computers, rather than having to make a different version of the program for each of the computers. The process of taking a program that runs on one computer A and modifying it so that it runs on a different computer B is called porting the program to computer B. Porting has gotten easier over the years. Originally, the program had to be rewritten in the machine language or assembly language used by computer B. Then high-level languages such as Fortran or C made it possible to write the program in a high-level language and compile it into the machine language required by computers A and B. However, each version of the program had to take into account the fact that computers A and B generally ran under different proprietary operating systems. The number of operating systems and the number of different hardware architectures has been reduced over time, but the porting problem remains. Even today, a program which is written for one platform (the combination of a particular operating system running on a processor having a particular hardware architecture) cannot simply be run on another platform as it was written for the first platform, but must instead be ported to the other platform. [0005]
  • More is involved in porting than simply changing code to get it working on the new platform in all but the smallest software development organizations. First a development team gets the original software working on a single development platform. Then the software is handed over to a porting team who have the task of making the original software work on other platforms, termed delivery platforms. This often requires help from the development team, because the porting team may not understand some aspects of the code or the original developers may have coded something that just can't be done on some of the delivery platforms and a major change is required. [0006]
  • Once the porting is complete, the modified source code is integrated back into the original source code, which is often simultaneously undergoing modification for a new version of the software. In addition to the direct labor and equipment costs of porting there are indirect costs: [0007]
  • The development team must communicate with the porting team to help them resolve issues. [0008]
  • The porting team has opportunity to introduce bugs into the code. [0009]
  • Changes made by the porting team must be integrated back into the source base. [0010]
  • Time differences in the availability of software on different platforms adds to support costs and customer frustration. [0011]
  • Programmers have made many attempts to reduce the costs associated with porting. A major aim of the design of the Unix® operating system and the C high-level language was to provide a standard programming environment for writing programs that would run on different UNIX platforms. Many programs have in fact successfully run on multiple UNIX platforms, but there have always been ragged edges and the UNIX/C programming environment provides little or no feedback to indicate to a programmer whether the code he or she is writing in fact adheres to the standard or is accidentally using non-standard features that are peculiar to the development platform the programmer is writing the code on and that will not work on other platforms. [0012]
  • To make porting simpler in the UNIX environment, the UNIX community attempted to unify around the concept of an application binary interface (ABI), which was a formal description of the calling conventions, data representation, and available services that an operating system that conformed to the UNIX standard would provide to application programs on specific hardware architectures. There were two problems with the effort: [0013]
  • The ABI's were not broad enough to be really useful to programmers, and [0014]
  • most vendors of UNIX platforms were unwilling to change their platforms to conform to the ABI. [0015]
  • Some vendors of UNIX platforms, meanwhile, produced utilities which accommodated a program written to run on one platform so that it would run on another platform with the same underlying computer architecture. Examples are DG/UX®'s Application Capture Option, IBM's Linux Application Execution Environment, and an Open Source package called Lxrun. Where these utilities work with a given application program, they solve the portability problem for the application program that they work with and the platforms that they are designed for. There is, however, no guarantee that the utility will work with the given application program, or that if it works, that the next version of the application will work. If the utility doesn't work, it gives the programmer no help in getting the application program itself to work. [0016]
  • The UNIX world has long used the lint utility to help identify portability problems. lint is run on the source code for a program before the source code is compiled and identifies patterns in the source code that may cause problems during compilation or later. Unfortunately, there are many cases where lint can't decide if a code sequence is acceptable or not. It gives up in these cases and produces false-negative messages that engineers have to read past to find any real problems. This is very tedious. [0017]
  • Finally, many software development organizations insulate their application programs from OS differences by writing an abstract operating system, that is, a layer of software that provides a standard interface to the application program and contains the code needed to make the standard interface work with the operating system interfaces for the operating systems the application is to be ported to. Thus, all that is required when an application is to be ported to a new operating system is to port the abstract operating system to the new operating system. This does in fact reduce porting costs, but the abstract operating system is in essence an internal standard. As such, it must be designed, must be agreed to by all parties, must be implemented, and must be maintained. [0018]
  • While the best solution to the porting problem would be its elimination by the adoption of a single standard platform, it has become increasingly apparent that for historical, technical, and commercial reasons, there will be multiple platforms for the foreseeable future. What is needed are tools that help the programmer do the porting that must be done. What is particularly needed are tools that make the programmer aware of potential porting problems as soon as possible and that are easily adaptable to deal with all present and future platforms. It is an object of the present invention to provide such tools. [0019]
  • SUMMARY OF THE INVENTION
  • The object of the invention is attained through an improved program development environment in which a program which is to execute on a plurality of platforms can be developed. The program development environment includes a compiler for producing object code for a given one of the different platforms from source code for the program. The program development environment is improved by adding a database that describes the platforms and differences between the platforms. The database is accessible to and interpretable by the compiler and the compiler responds to the source code and the database by indicating whether any of the source code is incompatible with any of the differences described in the database. In addition to the database, the program development environment may include a run-time test library that is bound to an application binary produced from the object code and responds to an execution of the application binary by testing whether the application binary is incompatible with any of the differences described in the database. The program development environment may further include a compatibility run-time library for each of the platforms that is bound to the application binary produced for the platform and that performs conversions necessary for compatibility when the application binary for the platform is executed. Additionally, the program development environment may include platform proof code for different ones of the platforms, with the platform proof code for a platform being executed on the platform to determine whether the database correctly describes the platform. [0020]
  • In one version of the program development environment, the database, the run-time test library, the compatibility run-time library, and the platform proof code are all produced by a meta-compiler from a description of the platforms including the differences between the platforms. The language compiled by the metacompiler includes selector names associated with platform and selector constructs that use the selector names to specify bindings of the program constructs for the platforms with which the selector names are associated. The metacompiler makes a tree structure which include tree selectors that represent the selectors, a tree selector specifying a set of bindings for a construct that produce unambiguous readings of the definition of the construct. The meta-compiler then uses the unambiguous readings to generate the database from the description. [0021]
  • Other objects and advantages will be apparent to those skilled in the arts to which the invention pertains upon perusal of the following Detailed Description and drawing, wherein:[0022]
  • BRIEF DESCRIPTION OF THE DRAWING
  • FIG. 1 is an overview of the novel programming environment disclosed herein; [0023]
  • FIG. 2 is an overview of how the novel programming environment is used to port a program to run on a number of platforms that share a hardware architecture; [0024]
  • FIG. 3 is an overview of how the novel programming environment is used to port a program to run on a number of platforms that differ in hardware architectures; [0025]
  • FIG. 4 shows an example AdI Meta-language source file and the corresponding link-time and runtime source code generated by the AdI Meta-compiler; [0026]
  • FIG. 5 shows example Platform Proof source code generated by the AdI Meta-compiler from the source in FIG. 4; [0027]
  • FIG. 6 shows another AdI Meta-language source which illustrates a case of variation among supported platforms and the header file that would be generated by the Meta-compiler on that source; [0028]
  • FIG. 7 shows the source code for a program being compiled in the AdI environment and error messages output as a result of compilation in the AdI environment; [0029]
  • FIG. 8 shows a variation on FIG. 3 where the user chooses to uses the AdI technology in such a way that the small but perceptible performance overhead of the AdI runtime library is eliminated; [0030]
  • FIG. 9 is an overview of the AdI meta-compiler; [0031]
  • FIG. 10 is the BNF for forms in the AdI language; [0032]
  • FIG. 11 is the BNF for the selector form in the AdI language; [0033]
  • FIG. 12 is an example of a selection set definition, of a selector, and the results of application of the selector; [0034]
  • FIG. 13 is the BNF for the system file form in the AdI language; [0035]
  • FIG. 14 is the BNF for a selection set definition form in the AdI language and an example of a hierarchical selection set; [0036]
  • FIG. 15 is the BNF for the platform-feature-set-prop form in the AdI language and an example of a platform-feature-set-prop; [0037]
  • FIG. 16 is an example of a selection set, selectors in type definitions, and a function interface that uses the type definitions; [0038]
  • FIG. 17 is BNF that describes the extension to the selection-pred form used in t-sel forms and an example of a t-sel; [0039]
  • FIG. 18 is another example of a t-sel showing the readings produced from the t-sel; [0040]
  • FIG. 19 shows the t-sel which analysis produces from the code of FIG. 16 and the readings produced from the t-sel; [0041]
  • FIG. 20 shows an example index page fragment from a report comparing two operating systems; [0042]
  • FIG. 21 shows an example report fragment showing simple non-conflicting declarations; [0043]
  • FIG. 22 shows an example report fragment showing a declaration that differs between the two operating systems; and [0044]
  • FIG. 23 shows an example report fragment that is somewhat more complex.[0045]
  • Reference numbers in the drawing have three or more digits: the two right-hand digits are reference numbers in the drawing indicated by the remaining digits. Thus, an item with the reference number [0046] 203 first appears as item 203 in FIG. 2 and an item with the reference number of 1801 first appears in FIG. 18. Elements in one FIG. that appear in a later FIG. retain their original reference numbers. Thus, item 119 in FIG. 2 is the same as item 119 in FIG. 1.
  • DETAILED DESCRIPTION
  • The following Detailed Description has two parts. The first part describes the adaptive interface and how it reduces the effort of porting; the second part describes a system and method for building the adaptive interfaces. [0047]
  • The Adaptive Interface: FIGS. 1-3 [0048]
  • FIG. 1 shows a [0049] software development environment 101 that permits early detection of porting problems. Software development environment 101 makes application binary 113 for development platform 121(a) from application source code 103, which is written in a high-level language. The development environment includes a compiler 107 which is specific to the high-level language in which application source 103 is written and to the development platform 121 upon which application source 103 is being developed. Compiler 107 compiles application source 103 to produce application binary 113, which will execute on platform 121.
  • Included in [0050] software development environment 101 are adaptive interface headers 105 and libraries 106, compiler 107, adaptive interface test-time library 117, adaptive interface run-time library (RTL) 119, and platform 121(a). Adaptive interface headers 105 and libraries 106 contain interface information for all services available on the platforms to which the program being made from application source 103 is to be ported. The platforms in this example are 121(b . . . d) in addition to platform 121(a), shown in FIG. 2. The descriptions are in a form which permits compiler 107 to read and respond to them in the same fashion in which compiler 107 responds to the header and library files which are normally used in the compilation of source code. As compiler 107 compiles application source 103, it responds to the code in application source 103 and to headers 105 and libraries 106 by producing a report 109 which makes a list 111 that indicates for each of the platforms for which there is a description in headers and libraries 105 whether there are any potential porting problems for the platform.
  • In a presently-preferred embodiment, [0051] compiler 107 is a completely standard compiler for the programming environment 121(a) that application binary 113 is to execute on. Compiler 107 includes mechanisms for defining compile-time symbol names and outputting those names in diagnostic messages. The AdI headers and libraries 105 use these mechanisms to define compile-time symbol names in such a way that if they are used in a non-portable way, they will appear in compiler diagnostic messages with the spelling of the symbol name containing a message about the non-portable usage. (See item 608 in FIG. 6 for an example.) In other embodiments, compiler 107 may be specially adapted for use in software development environment 101 and may use special mechanisms to make report 109.
  • Some porting problems cannot be detected at compile time. One example of such a problem is passing the pathname “/dev/kmem” to the open function. Opening kernel memory is most likely a non-portable operation. To detect these problems, [0052] software development environment 101 includes adaptive interface run-time test library 117. Application binary 113 is bound to run-time test library 117 before it is executed and run-time test library generates its own report 109 indicating any problems it finds. Test library 117 is designed to use the actual runtime library for the platform and is coded to only monitor, not modify the behavior of functions belonging to the actual run-time library. Adaptive interface run-time library 119, finally, is a library of routines that deal at run time with certain portability problems such as data conversions.
  • Once [0053] report 109 has made a programmer aware of a portability problem, he or she has two immediate courses of action: either code around the problem or drop the deficient platform from the list of platforms the application is to be ported to. This allows the programmer to move on, but it also gives the programmer (or the programmer's manager) an early warning that allows them to deal with the discovered portability problems without holding up development. They can, for example go to the platform supplier and attempt to get an enhancement. There may also be a way of inventing a portable alternative that can be added to the adaptive interface software development environment. AdI thus gives early warning of porting problems and supplies a mechanism for managing porting issues. It does not attempt to solve all porting problems or force all programs into a limited common model.
  • FIG. 2 shows a single binary application in production on multiple platforms with the same computer architecture, but different operating systems. The new platforms are [0054] 121(b . . . d), the same platforms that were targeted in FIG. 1. Each platform has a unique runtime library (119 and 219(b . . . c)) that has an identical binary interface from the application side, but separate translations from that interface into what is expected in the underlying OS. The testing library 117 is not present here. It was only used during testing.
  • Although not required to do so, software developers may rerun their tests of the original code on all other platforms to which the code is transported to confirm that there are in fact no porting problems that were missed by the AdI environment on the [0055] original development platform 121. This step is termed the verify phase. If the AdI headers, libraries, and test library have properly described each of the platforms, the verify phase should never find a problem. If one is found, there is at a minimum a bug in the AdI descriptions, since they should have identified any portability problems when application source 103 was compiled for platform 203(a) and the resulting application binary 113 was tested on platform 203(a). There may, of course, also be a real portability problem. If there is a real portability problem, it is resolved as described above for problems correctly identified by the AdI. In any case, the AdI descriptions should be enhanced to fix the bug and/or identify the new portability problem. Once verification is complete, the application runs in the same way as it was run during verification.
  • Note that there was little need to verify on the original development platform [0056] 121(a). The AdI test library is designed to have no impact on the behavior of calls to the functions whose calls it checks other than the possibility of slowing down the speed of execution and using a small amount of stack and/or dynamically allocated memory. If the application has no sensitivity to the speed of the system services it uses, then it was completely exercised in the test phase discussed with FIG. 1. Running the verification step would produce identical results as the last test run.
  • FIG. 3 shows how AdI is used to produce production copies of an application in a different situation. Just like FIG. 2, FIG. 3 is a continuation from FIG. 1, but in this case the underlying computer architecture is different across platforms or this mode is used because the user wishes to minimize the AdI runtime overhead. Thus, platform [0057] 305(a) has the AIX operating system and the IBM PowerPC® hardware architecture, 305(b) has the LINUX operating system and the PowerPC® hardware architecture, and platform 121(d) has the LINUX operating system and the Intel Pentium® processor architecture as in FIGS. 1 and 2. Here the programmer has to recompile application source 103 for each hardware architecture. Initial development and testing are done using AdI on one platform, just as before. Verification is also done as before for each of the platforms. As before, problems found during verification are at a minimum AdI description source bugs. Note that the AdI runtime library 319(c) may be different from the library 219(d). The former may have a binary interface that more closely matches the Linux system than the latter whose binary interface is designed to work on multiple OS's.
  • Of course, the programmer can also compile for each hardware architecture in the same fashion as shown for the single hardware architecture in FIG. 2. Thus, the programmer could compile for platforms [0058] 305(a) and 305(b) as shown in FIG. 2 and then compile separately for platform 121(d).
  • FIG. 8 shows a variation of FIG. 3 where as much of the OS headers and libraries as possible are used to absolutely minimize the overhead of the AdI runtime libraries. When this is done, the only components of [0059] AdI headers 105 and libraries 106 which are involved in the compilation are AdI-unique functions that were invented to solve particular porting problems.
  • In summary, AdI offers programmers who are porting an application to a number of platforms the following advantages: [0060]
  • Porting problems are detected earlier in the porting process. This in turn: [0061]
  • Shortens porting time and [0062]
  • Minimizes platform-specific bugs [0063]
  • The porting process costs less because: [0064]
  • Rapid porting results in uniform revision currency between the original version of the application program and the ported versions and [0065]
  • There are fewer platform-specific porting problems [0066]
  • Quality of the ports is improved: [0067]
  • Original developers see porting problems early [0068]
  • Fixes in the ports are more consistent with the original design. [0069]
  • The Adaptive Interface Meta-Language [0070]
  • Building an AdI programming environment by traditional methods of writing source language by hand is tedious and error-prone. The Adaptive Interface solves this problem by using a special-purpose programming language called the AdI Meta-language. The language is designed for the particular problems of describing an interface that varies across multiple platforms (and varies across multiple versions of the same platform). The Adaptive Interface system also provides a compiler that transforms this source into the AdI programming environment objects, with the aid of platform-specific development tools such as compilers and linkers. See FIG. 9. [0071]
  • The first three of the generated sets of components illustrated in FIG. 9 ([0072] references 105, 106, and 119) are the same components described above. The fourth, Platform Proof Source 901 is a set of files that the AdI Meta-compiler generates that are used to aid in writing correct Meta-language source. The Platform Proof Source is a set of programs and a build/run make file. The programs are constructed to test the consistency between what was encoded in the Meta-language source for every platform and what the platform actually supplied. Executing the build/run make file (by invoking the Gnu make utility) on each platform will attempt to build and run the test programs. If they correctly build and run then the AdI Meta-language source was consistent with the platform. If not, the meta-language was inconsistent in some way such as naming a function that did not exist or defining a macro constant to be a wrong value.
  • Examples of ADI-Generated Headers and Source Code: FIGS. 4 and 5 [0073]
  • These examples of the header files and source code generated by the AdI Meta-compiler are from a version of the environment which is used with a C compiler, possibly the Gnu C compiler, on a platform running the Unix operating system. The header files and source code consequently follow the conventions of the C language, the Unix operating system, and the Gnu C compiler under appropriate conditional compilation. In embodiments for other environments, the header files and source code would follow the conventions of those environments. [0074]
  • In the examples of FIGS. 4 and 5, an AdI source file called [0075] module1.m 401 consists of a description of the header file t1.h and the interface definition for a single function fun1. This header file and its one function are written assuming that the file and its function description are provided on all platforms that are supported by the programming environment generated from this source. (See FIG. 6 for an example of a restricted definition.)
  • The AdI Meta-compiler converts the [0076] source 401 into C-language components which contribute (with or without further processing) to the four sets of components illustrated in FIG. 9.
  • At [0077] 403 is shown the header file include/t1.h in the AdI headers 105 that the AdI Meta-compiler generates from the description. The lines at 405 protect the header from accidental reinclusion. The #include at 407 includes a header file which defines a common set of definitions for all compilations in the programming environment. The lines of code at 409 and 412 rename fun1 to a name, _AdI_fun1, which is unique to the programming environment and permits the programming environment to insert logic for referencing the underlying system function fun1 in its own runtime and the platform proof code. The code at 412 takes advantage of a special feature of the Gnu C compiler (and possibly others that have a similar facility), to rename the function's link-time name without changing its source name. This is cleaner because it avoids confusing the user when debugging a program. If such a facility is not available, the code at 409 accomplishes the same thing with the more standard, but less desirable macro define facility. The _AdI_EXTERN symbol labeled 411 is a macro invocation that declares the function to be external in a way that permits header 403 to simultaneously support the C and C++ languages.
  • At [0078] 413 is shown the link-time source code 413 generated by the AdI Meta-compiler. Shared libraries used at link time tell the linker the names and other information needed at link time of functions and variables that the runtime-equivalent of the library will provide. This code provides the information needed by the system linker to reference these functions from an application binary such as 113. The #include statements add the source code that helps in implementing the AdI programming environment. At 415 is shown an invocation of the _AdI_stub_function macro for _AdI_fun1. This macro expands to a function declaration that has the appropriate name, but not the correct interface or any implementation. The name and the fact that it is a function is sufficient for linking. The link-time source contains such an _AdI_stub_function invocation for every function that has been declared in the programming environment. Note that the modified name of the function is used because the function's interface declaration 409, 411, and 412 renamed all fun1 references to _AdI_fun1.
  • The [0079] source code 413 is converted into binary form once for every platform where it is intended to be used by invoking a make script that was generated by the AdI Meta-compiler on each platform.
  • The runtime source code generated by the AdI Meta-compiler from [0080] source 401 is shown at 417. The module again includes the AdI implementation and the AdI run time tools at 418; it also includes the underlying system header file at 419. The code itself consists of the single line shown at 420. The line, _AdI_jumpfcn(_AdI_fun1,fun1) specifies that the compiler generate assembly language instructions which cause any calls to _AdI_fun1 to redirect to the underlying system function fun1. No more is required here because fun1 with the interface defined in source 401 is available in all of the platforms with an identical interface. If there were differences in the versions of fun1 on the platforms, for example, differences in the order of the arguments or their data types, the generated run-time source would deal with those differences, for example, by including code which changed the order of the arguments or making data type conversions as required for the various platforms. Such code is free to call on other system and AdI-environment-specific functions to perform its operation. In cases where this is a new abstraction, it will not call an underlying function since it does not exist.
  • FIG. 5 shows [0081] platform proof source 501 that is compiled and run to perform the platform proof for AdI meta-source 401. Platform proof source 501 is thus an example of AdI platform proof source 907. Beginning at 503, platform proof source 501 includes the header t1.h for the platform that source 401 is being ported to. The actual verification is performed by the function _AdI_prove( ) 505, which is called by the main procedure that is included in every compiled C program and that is called by the operating system to begin the program's execution. The function sets a test count variable to 0 at 506 and then, as shown at 507, assigns the address of fun1 (which is expected to be defined by all platforms in t1.h) to the function pointer _AdI_x 508. The program code specifies that the pointer variable, _AdI_x, be to a function which has the interface which the description used to generate platform proof source 501 indicates is the interface of fun1 on all of the platforms. If the description is incorrect and fun1 has a different interface on the platform, the compiler will generate an error message for assignment 507 indicating that the assignment is improper, thus indicating an error in the description. The statement at 509 simply assigns 0 to the pointer so that the compiler does not generate an error message indicating that no value has been assigned to the pointer. The statement at 510 increments the test count (setting it to 1 in this case), indicating that the test was performed.
  • The above example performs the important proof step at compile time when the assignment at [0082] 507 is checked for validity. Other tests such as the expected value of a macro constant are checked at runtime when the _AdI_prove function is executed.
  • The part of the _AdI_prove function with the [0083] reference number 513 is a set of conditionally-compiled statements that ensure that the appropriate number of individual tests are performed for each platform. In this example, all platforms have the same number of tests. In examples where there are differences among platforms, the number of tests may vary. This check of the test number is a sanity check that the compiler emits to ensure that all generated assertions are appropriately checked. If the compiler and build/test scripts are correct the number of tests will always be right.
  • Example of Detection of a Porting Problem at Compile Time: FIGS. 6 and 7 [0084]
  • In the example of FIGS. 4 and 5, the description of the platforms indicates that the function fun1 is available on all of the platforms; consequently, it does not become apparent until the platform proof stage that fun1 is was in fact available on a limited number of the platforms. In the following example [0085] 601 in FIG. 6, the description has been corrected to include a selector form 605 which indicates that fun1 is only available on operating systems whose platform description in the AdI meta-language defines the selector name tos2. A selector name is a name that is used to select among alternative structures in the various platforms. In the example, tos2 is defined for the target platform targ2, but not for the target platform targ1, and is thus expected on platform targ2 and not on targ1.
  • The AdI meta-compiler compiles [0086] description source 601 to produce generated header 607 along with other components that are not shown here. The portion of generated header 607 which is different from generated header 403 is shown at 608. Conditional compilation directive 609 indicates that if the program that includes the header t1.h is being ported to targ1 as well as targ2, an error message will be output to report 109 indicating that fun1 is not defined for targ1 if the function fun1 is referenced by the application program. That the error message should be output for targ1 is indicated at 611 and 613.
  • [0087] 611 and 613 show two techniques for outputting the error message. The technique shown at 611 assumes that a macro _AdI_compiler_integration has been predefined for the compiler being used to compile the program being ported. The macro is executed in a preprocessing step, and as a result, the preprocessed header includes the special form _AdI_function_missing. The special form instructs the compiler to both type check invocations of functions that the AdI description indicates are of interest and to output a message when a function is not available for a particular target and it is referenced. The technique shown at 613 presumes no modification whatever of the compiler to accommodate the AdI development environment. The #de fine directive at 613 defines fun1 as a macro whose value is a symbol whose name is the error message AdI_error_fun1_is_not_defined_on_targ1. The symbol is otherwise not defined, and when the object file created by the compilation is linked, the undefined symbol will result in an error message from the linker which will output the name of the undefined symbol, and thus output the AdI error message.
  • FIG. 7 shows what happens when a user of the AdI program development environment compiles a program that includes an invocation of the function fun1. The source text for the program is shown at [0088] 701; the function is invoked in the second line of the function main( ) at 702. To compile in the AdI environment, one places the AdI bin directory at the front of PATH in the shell environment and then invokes the compiler normally. The AdI bin directory includes a script that defines preprocessing macros that redirect explicit and implicit references to standard headers and libraries and indicates to the compiler the targets one is interested in. If the user indicates no particular interest, AdI assumes that the compilation is for all supported platforms.
  • What happens in the compilation depends on the degree of integration of the compiler into the AdI development environment. [0089] 703 shows compilation with the standard Gnu C compiler. The shell command for the compilation is at 705; since no target is specified, AdI assumes that both available targets, targ1 and targ2, are intended. The shell command for linking the compiled object code is at 707; because there was no definition for fun1 in the target, the compiler defines the error message symbol as shown at 613, and at link time, because the error message symbol is otherwise not defined, the linker error message at 709 contains the symbol's name, and thus the error message. 711 shows compilation with more integration; here, a properly-labeled AdI error message is output during compilation. With either technique, the user is made aware while compiling or linking the program on a single platform of the existence and nature of any porting problems on other platforms that are captured by the AdI description for the platforms.
  • Making an AdI Description of a Set of Platforms: FIG. 9 [0090]
  • As shown in FIG. 9, the actual description of a set of platforms to which a program is to be ported is contained in AdI source files [0091] 903. AdI source files 903 are written in a preferred embodiment in a language called the adaptive interface or AdI language. The source files are then compiled by a compiler 905 for the AdI language to produce SDE header files 105, SDE link-time libraries 106, SDE run-time libraries 119, and platform proof source code 907. In order to distinguish compiler 905 from compiler 107, compiler 905 will be termed herein the AdI meta-compiler. The following discussion will begin with an overview of the AdI source files 903 and of the AdI language and a detailed discussion of selectors, which are the constructs that the AdI language uses to describe differences between platforms, and will then provide an overview of the AdI meta-compiler and a detailed discussion of the manner in which the meta-compiler treats selectors.
  • Overview of the AdI Language: FIGS. 10-11 [0092]
  • The preferred embodiment of [0093] SDE 101 is designed to port programs written in the C or C++ languages; this embodiment of the AdI language thus looks like a combination of the well-known Lisp and C programming languages. The Lisp-like components provide a high-level organization for a collection of chunks of C declarations and code. In other embodiments, the chunks and declarations would be in the language compiled by compiler 107. FIG. 10 shows the basic structure of the language. In FIG. 10 and elsewhere, the AdI language is described in a BNF grammar styled after the well-known BNF grammar used in the ANSI C standard. Syntactic categories (nonterminals) are indicated by italic type, and literal words and character set members (terminals) by bold fixed-width type. A colon (:) following a nonterminal introduces its definition. Alternative definitions are listed on separate lines. An optional symbol is indicated by the subscript suffix “opt”.
  • As may be seen from [0094] BNF 1001 in FIG. 10, AdI source code is made up of a list of forms; each form is surrounded by parentheses, as shown at 1003. The parentheses may contain form-parts, including other forms. Each AdI source file 903 defines a header file 105 and source code that contributes to one or more of the libraries 106 and 119 and the platform proof source code 907 associated with the header file 105. Also necessary for compilation of an AdI source code file 903 is a system file. The system-file is a set of parameters that are common to all compilations for a given set of platforms. The file defines a collection of names that are valid in other sources as well as specifying one or more platforms. When the metacompiler is invoked, a single platform is designated as the reference platform and a set of the platforms, optionally including the reference platform, are selected as target platforms. The reference platform defines the source interface for the generated SDE. The targets are the platforms that are supported to run applications built for the SDE.
  • For the purposes of the present discussion, the most interesting form in the AdI language is the selector, which is used to describe differences between platforms. FIG. 11 shows the [0095] BNF 1101 for the selector form. The selector form is a kind of conditional compilation that can control the interpretation of source in almost any context. Unlike traditional conditional compilation that is performed in a pre-processing pass over the source code, the selector forms are part of the syntax managed by the compiler. In fact, the compiler compiles all combinations of conditional compilation that are requested in the platform-def forms in the system file for all targets at once.
  • Each selector-name [0096] 1109 in the above grammar is a name that belongs to any of a number of hierarchical sets of names defined in selection-set-def forms in the system file. Some restrictions apply and will be explained later. In any given context, one of the leaf selector names from that set of names is defined. AdI metacompiler 901 selects at most one of the choices offered by the selector-choices in selector 1103, with the selection being made based on the context and a left-to-right reading of the selector choices. The selected choice is the first one to have a selection 1107 that evaluates to true in the given context or, if none of the names evaluates to true, the else choice, if one is present. The forms that are selected syntactically replace the entire selector form and are interpreted as if the selector had not been supplied.
  • FIG. 12 gives an example of the use of selectors. The selectors in FIG. 12 are from an AdI source file that is being used to port software to platforms running the AIX®, Linux®, DG/UX®, and UnixWare® operating systems. These operating systems are all variants of the original UNIX® operating system and consequently use many of the same names for literals, albeit at times with different values. The following table shows the C-preprocessor macro names and values for the various platforms: [0097]
    Literal name Operating system Defined? Value
    RTLD_LAZY all y 0x0001
    RTLD_NOW all y 0x0002
    RTLD_GLOBAL Linux y 0x0100
    all others y 0x0004
    RTLD_LOCAL UnixWare, AIX y 0x0008
    all others n
  • As may be seen from the table, RTLD_LAZY is defined and has the value 0x001 in all of the platforms, while RTLD_GLOBAL is defined for all platforms but its value varies and RTLD_LOCAL is defined only for UNIXWARE and AIX. [0098]
  • The names used in the selectors of the example are defined in the system file as shown at [0099] 1201. At 1203 are shown a set of define-def forms that are used to create macro definitions. The define-def forms contain the selectors. Each selector has a selection predicate 1109. The selection-predicate in BNF 1101 is composed of names, operators and parentheses that evaluate to a Boolean value each time the compiler evaluates it. The Boolean value of a selector name is determined by the platform chosen for the reading context of the compiler. A name is true if it appears in a platform-select-prop 1201 in the platform's platform-def. It is false if it does not. Thus, in selector 1205, there are two selection predicates, the selector name linux and the AdI language-defined predicate else, which has its usual meaning. Selector 1205 thus indicates that when the target platform has the LINUX operating system, RTLD_GLOBAL will have the value 0x0001 and otherwise the value 0x0002. Selector 1207 illustrates the use of the OR logical operator. The list of selector names (unixware aix) indicates that if either of these platforms is the target, RTLD_LOCAL will have the value 0x008; since there are no selector predicates for RTLD_LOCAL for the other platforms, RTLD_LOCAL is undefined for those platforms. If application source 103 contains the literal RTLD_LOCAL and is compiled by compiler 107 with an AdI header file 105 made from an AdI source file 903 containing selector 1207 and the target is a LINUX or DGUX platform, report 109 generated during the compilation will include a warning that RTLD_LOCAL is not defined for the platform.
  • The operators in the selectors are interpreted as follows: [0100]
  • or—logical or [0101]
  • Is true if any of the alternative selection-predicates are true. This operation is so common that if no sel-lop operator is present, then an or operator is assumed. [0102]
  • and—logical and [0103]
  • Is true if all of the alternative selection-predicates are true. [0104]
  • not—logical negation [0105]
  • Is true if the selection-predicate is false. [0106]
  • +<= <> >=—relation operators [0107]
  • Each of these operators are true if any of the names in the selected range are true. The range is determined by starting with the set of names defined by the root selector name of the selector-name and choosing those where the relation operator is true. For example, saying (<linux) in the previous example would be the same as saying (or aix dgux). [0108]
  • Defining Selector Names and Relating Them to Platforms: FIGS. 13-16 [0109]
  • As mentioned above, the system-file is a set of parameters that are common to all compilations for a given set of platforms. Among the parameters defined in the system file are selector names. The system file also relates selector names to platforms. FIG. 13 shows BNF [0110] 1301 for the system file. The file defines a collection of names that are valid in other sources as well as specifying the reference platform that selects the source and binary interface for the generated SDE. Of particular interest in the system file are selection-set-def 1303, which defines the set of names that may be used in selectors and platform-def 1305, which defines the reference and target platforms.
  • FIG. 14 shows BNF [0111] 1401 for selection-set-def 1303 and an example selection set definition 1407. A selection-set-def defines a hierarchical enumeration of names 1405 that are used in selector forms. Like C enumerations, each selector-name must be unique, both within the selection-set-def and with respect to other selection-set-def forms.
  • Unlike C enumerations, the selection-set-def forms a hierarchy of names. Any name defined with an associated sub-selector is an abbreviation for the set of all names defined in the sub-selector. The top-level name in a selection-set-def is called its root selector name. A name that does not have an associated sub-selector is called a leaf selector name. Leaf selector names are used to identify specific implementations, to name properties that further specify an implementation, or to name feature sets that define concurrent support in a library that is under control of conditional compilation. [0112]
  • The hierarchy of names is shown at [0113] 1411 in example selection set definition 1407. unix at 1409 is the root selector name in definition 1407; linux at 1413 is the root selector name in subhierarchy 1411; bobx at 1415 and the other names in 1411 are at the bottom of the hierarchy and are thus leaf selectors. The following table shows abbreviation of names at a lower level of the hierarchy defined by definition 1407 by names at a higher level.
    Set of lower-
    level selector names for which the selector name is an
    Selector name abbreviation (names marked with + are leaf names)
    unix linux solaris unixware+
    linux bobx+ janx+ joex+
    solaris solaris2_6+ solaris2_7+
  • Selection set names live in a separate namespace from other identifiers. There would be no conflicts with using the names main, typedef, or selection-set. A reference to a selector-name may not appear until after the selection-set-def form that defines the selector-name. [0114]
  • As was implied above, the selector forms are syntactic entities that control the interpretation of the AdI source in a context sensitive manner. That interpretation is termed herein a reading of a given form. If the reading is in the context of the reference platform, then it is called a reference reading. If it is in the context of a target platform, it is called a target reading. [0115]
  • Reference and target platforms are described in platform-def forms [0116] 1305. Each platform-def form defines the name for an abstract “platform” which is a collection of settings and controls that apply when the platform-name is designated as the reference or one of the targets of compilation. Each platform-name must be unique among all platform names. Platform names are in a separate namespace. References to platform names do not appear anywhere in the AdI language grammar. They are the keys that the compiler uses to control interpretations and select subsets out of AdI source 903
  • The part of the platform-def which is of particular interest in the present context is the platform-feature-set-prop, which specifies the feature sets supported on the platform specified by the platform-def. A feature set is the set of variations in an interface for a service that are particular to the platform described by the platform-def. [0117]
  • FIG. 15 shows the [0118] BNF 1501 for platform-feature-set-prop and an example 1507 which shows two selection set definitions 1407(a) and (b) and a portion of a platform-def 1509 which contains feature set definitions for that platform for the selector names defined in the selection set definitions 1407(a) and (b).
  • Beginning with [0119] BNF 1501, platform-feature-set-prop introduces a feature set that is supported on the platform. BNF 1501 defines platform-feature-set-prop as the feature-set keyword followed by a list of feature-definitions. A feature-definition has a name and a predicate-prologue. The name must be a leaf selector name and associates that selection set member with this feature set. Each selector-name in a platform-feature-set-prop must be from the same selection set. The predicate-prologue has two forms. It is a name for the most common case, and a c-predicate c-prologue pair for unusual circumstances. The c-predicate is a string that holds a preprocessor expression that must be true on the defined platform during verification and build. The c-prologue is a preprocessing code sequence that is inserted ahead of all compilation if this platform is used as a reference platform.
  • The name form merely tests and sets the name. Thus, [0120]
  • (environment FOO) [0121]
  • is the same as [0122]
  • (environment {defined (FOO)} {#define FOO}) [0123]
  • More than one platform-feature-set-prop form may appear in a platform-props sequence. The AdI compiler assumes that all features are independent and handles all combinations of all defined feature sets. A feature set must be complete. That is, one of the predicates must always be true or an error will be reported. The first feature-definition in a platform-feature-set-prop is the default for this feature in the SDE. [0124]
  • Continuing with example [0125] 1507, the selection set definitions 1507(a) and 1507(b) define four leaf selectors 1415: bsd-signals-off, bsd-signals-on, large-files-off, and large-files-on. The platform-def 1509 in which the two platform-feature-set-props 1511(a) and (b) appear is a platform definition for a platform that is running DGUX, a version of the UNIX operating system, on a processor that has the IA-32 architecture. On this platform, the BSD_SIGNAL_FLAVOR C-preprocessor macro in an application program indicates whether the application program presumes the signal behavior of the BSD version of the UNIX operating system or the default of System V signals behavior, while the value of the _FILE_OFFSET_BITS macro in the source code indicates whether the program being compiled assumes that files can have 64-bit offsets or that files can have 32-bit offsets.
  • The feature set is used in two aspects of the AdI SDE. First, if the dgux-ia32 platform is chosen as the reference for compilation, then the two macros, BSD_SIGNALS_FLAVOR and _FILE_OFFSET_BITS, are part of the programming interface to control those features for all platforms. The AdI system performs a sanity check on all compilations. The sanity check ensures that one and only one of the c-predicate forms is true and that the selector name from the feature-definition that was selected is defined in a feature-definition for every platform requested by the user. That is, that the feature-set is correctly controlled and that the selected feature variant is supported on all requested platforms. The second use of the feature set is to ensure that the feature is properly controlled when creating library components on each platform. [0126]
  • Details of AdI Meta-Compiler [0127] 905: FIGS. 9, 16-19
  • AdI meta-[0128] compiler 905 is organized into three phases:
  • Reading—Converts AdI language source files [0129] 903 in ASCII form into an internal tree structure.
  • Analysis—Checks the trees for correctness, resolves names to definitions and organizes information for simpler access. [0130]
  • Code Generation—Generates C-language source, make files, documentation, installation scripts, and other miscellaneous components. The make files are used to convert the generated source into the AdI SDE's binary components. [0131]
  • These phases appear in FIG. 9 as the [0132] compiler components reader 909, analyzer 911, and code generator 913. Reader 909 reads AdI source files 903 and produces a tree representation of them which appears in FIG. 9 as tree structure 917; Analyzer 911 then processes the tree representation to improve the efficiency with which it represents information, and code generator 913 then uses tree structure 917 as modified by analyzer 911 to produce the components which make up the ADE programming environment. Report generator 915, finally, uses tree structure 917 to generate reports that can be used by end-users of the SDE to see the set of supported services and any differences among the supported platforms.
  • For the most part, [0133] AdI metacompiler 905 uses standard techniques in making, modifying, and using tree structure 917. In addition to the tasks handled by standard compilers, however, the AdI compiler must manage the computational complexity of performing a “simultaneous” compilation of many dozens of target platforms.
  • A simple, but naive approach to compiling AdI components for the target platforms would be to merely take each target and compile it separately from the source. That almost works until you think about the requirements of feature sets. Each feature set introduces multiple variants for every platform that supports it. That number is multiplied by the number of variants in every other feature set since feature sets are independent of each other but can interact as they are used. Imagine two feature sets that control the representation of base types defined in The Single UNIX® Specification: [0134]
  • 1. A wide character feature that controls wchar_t, and [0135]
  • 2. A large files feature that controls off_t. [0136]
  • One could imagine a hypothetical function called pwrite_wchar that has both types in its interface. FIG. 16 shows the [0137] description 1601 of pwrite_wchar in AdI source files 803. At 1603 and 1605 are seen the selection sets 1407 that define the selector names for the 32- and 16-bit wide character sizes and 32- and 64-bit file offsets respectively. These definitions are in the sys-file used with AdI source files 903. At 1607 and 1609 are shown the type-defs for the wchar_t and off_t types. These are in the part of the AdI source file 903 that describes the C source code header file sys/types.h. The wchar_t type definition includes a selector with the wchar32 and wchar16 selector names and the off_t definition includes a selector with the off32 and off64 selector names. All of these definitions are in the sys-file. At 1611, finally, is shown the part of the AdI source file 903 that describes the C source code header file unistd+.h, which includes the interface definition for the function pwrite_wchar. The AdI environment must of course make sure that the use of the interface for pwrite_wchar in application source 103 is correct for each of the platforms to which the application source is to be ported.
  • Because the interface for the pwrite_wchar function involves two types, each of which is defined with a feature set having two feature alternatives, the interface has four variants: [0138]
    Argument type Size
    wchar_t
    32 32 16 16
    off_t 32 64 32 64
  • Now imagine feature set A with 2 feature alternatives, a feature set B with 3 alternatives, and a feature set C with 4 alternatives. If these were supported on 5 different platforms there would be 120 combinations of feature set alternatives and platforms to compile. (2×3×4×5=120) [0139]
  • The first step in finding a solution to the complexity problem is to recognize that most AdI declarations are identical on all platforms and that feature sets typically interact with a small proportion of the entire library interface. If we keep track of where the differences are, we can avoid retracing steps that will yield the same answer. [0140]
  • Within AdI meta-compiler [0141] 803's internal tree structure is a data structure called a t-sel (tree selector) that is a direct analog of the language's selector form. The presence of a t-sel in the tree indicates a point of variation that is context-dependent. During the analysis phase, each selector-choice must be analyzed within its appropriate context to check it for correctness and to gather context-dependent information that is needed later.
  • When analyzing any form we are immediately faced with the problem of managing complexity. Before we look at a given sub-tree, we don't know if it has any variation or what predicates control the variation. Once analysis is complete on any definition, it is desirable to know about t-sels that are contained in the body of the definition. This information is gathered during analysis and placed just above the definition in the internal tree in a new t-sel if none exists or by modifying an existing t-sel if one already exists. The effect of doing this is to include information contained in the t-sels in a tree in a single t-sel at the root of the tree. Only this single t-sel need then be considered in code generation. [0142]
  • The information is recorded in a new selection-predicate expression form called sel-factors-expr whose grammar is shown at [0143] 1701 in FIG. 17. The predicate is an existing predicate if this form is replacing a predicate in an existing t-sel choice, or is T (true) if this is in a new t-sel. The isel-groups 1702 are a list of independent selection set groupings. That is, each group holds sets of selector-names, where each set of names are from the same selection-set-def form and no two groups have names from the same selection-set-def form. The contained sets, in turn, are groups of one or more names that are uniquely associated with each other in t-sels in the original predicate (if present) and the tree of the choice associated with this predicate. By associated is meant that the names were all together in or expressions. By uniquely associated is meant that no names were in other groupings.
  • FIG. 17 shows how a [0144] selector 1713 including factors form 1715 for wchar_t and typedef form 1607 results from meta-compiler 905's analysis of form 1607. The AdI language's lisp-like syntax allows the internal tree structure to be isomorphic with the source form. This conveniently allows us to represent the internal form in the same notation as source code. The predicate 1714 in the factors expression is T because it is a new t-sel. There is one isel-group 1716 since the only contained t-sel just mentions members of the wchar_size selection set. There are two sets of one member each within the group reflecting the independent appearance of the wchar32 and wchar16 values.
  • The purpose of [0145] factors expression 1715 is to provide sets of bindings that produce an unambiguous reading of the contained tree that logically eliminates all t-sels in the contained tree. In the above example if we assume that wchar32 is true (that is to say bind it to be true and wchar16 to be false), then the contained typedef can be read as follows:
  • (typedef wchar_t {unsigned int}) [0146]
  • When the compiler encounters a t-sel with a sel-factors-expr, it repeatedly operates on the contained tree with a temporary binding to each of all combinations of the members of the isel-groups and a final exclusive iteration. FIG. 18 shows how this works. The AdI source files [0147] 903 contain a selection set S of 7 selector names a, b, C, d, e, f, and g, defined at 1801. They also contain the selector 1803, which relates the selector names to members of an enumeration type. The members of the enumeration type represent colors, and selector 1803 defines the enumeration colors whenever the selection set S values a, b, c, d, or e are true. There are two selectors within the enumeration; one of them relates the names a, b, and c to the enumeration value representing Red; the other relates the names c and d to Blue and the rest of the names, i.e., a, b, and e to Black. (The names f and g are excluded above so are not part of the else.) When AdI meta-compiler 905 analyses selector 1803, the result is the selector shown at 1805. The predicate is 1806 (i.e. the same predicate as 1804 with an explicit or operator). Note that the sets (a b c d e), (a b c) and (c d) were split into four independent sets, (a b), (c), (d), and (e) because they had overlapping members. The bindings and readings resulting from this definition 1805 are as shown at 1807.
  • The bindings in the sel-factors-expor allow the compiler to use a set of tree navigation primitives that can traverse the sub-tree skipping over all contained t-sel structures. The traversal works because the expressions are composed of selector-names and Boolean operators that can be evaluated as constant expressions once the names are bound. [0148]
  • Notice that both a and b could be bound at the same time in the previous example because they were used together uniquely. a, b, and c could not have been bound at the same time, because it would have led to an ambiguous selection in the second contained t-sel. [0149]
  • The t-sel skipping navigation primitives are more than a simple convenience. The AdI language is very liberal in allowing a programmer to place selector forms in many convenient places. If the compiler had to worry about a t-sel at every possible location, its logic would get very complicated. It does not have to worry about every possible t-sel once the tree is initially checked in the analysis phase. [0150]
  • There are a number of places in the compiler where the logic has to iterate over each arm of a t-sel, treating each arm as if it were independently processed within the lexical scope and context that contained the t-sel. The compiler solves this problem with a common paradigm: A function is created to perform the sub-tree processing, but it is written as if there were no t-sel in the root position of the sub-tree that it is processing. The function is not allowed to return a value and is coded in a way that allows it to be executed multiple times without the logic that invoked it from running. The outer logic then passes a sub-tree and the previously mentioned function to a controlling function that operates according to the type of the sub-tree. If it is not a t-sel, then the passed function is called once passing it the sub-tree. If it is a t-sel, then the function iterates through the t-sel choices, binding the selection context to the selection and calling the function with the forms of the selector-choice. [0151]
  • Going back to the wchar_t typedef definition, the analysis phase logic knows that there is a possibility of a t-sel in the type description position of a typedef form. It sets up a function to analyze a type description and passes the function to a general function that analyzes potential t-sels. If that function discovers that the root of the type description tree is a t-sel than it checks the t-sel for correctness and calls the type description analysis function once for each choice with the selection context appropriately bound. If the wchar_t definition had had an error in it, like the following with a misspelled short shown in bold: [0152]
    (typedef wchar_t [(wchar32 {unsigned int})
      (wchar16 {unsigned shot})])
  • the type description analysis function would report a problem when it was called the second time with wchar16 defined in the environment. The analysis phase's error reporting further notes whether the selection environment is restricted for any selection set and if so adds the phrase “when selection-set-root is selector-name” to any messages. The above error would be something like: typedef wchar_t: ill-formed type description “unsigned shot” when wchar_size is wchar16.) [0153]
  • Details of Tree Manipulations [0154]
  • The AdI compiler is currently implemented in the Lisp programming language. In Lisp, most primitive operations are implemented as functions. The AdI compiler contains its own set of functions that are analogs of many of the Lisp tree manipulating primitives but operate in a context-sensitive manner when encountering a t-sel. These functions use a naming convention of prefixing a “t” to the name of each analogous function. For example, the t-sel sensitive analog for the Lisp function called identity is tidentity. The identity function just returns its argument with no other effects. The tidentity function looks at its argument and if it is a list with a t-sel in its first position, it traverses the t-sel based on the value of a context variable to select the appropriate component. If not, it just returns its argument. Thus, using the selection-set S from above, [0155]
    (tidentity ′x)    => ′X
    (tidentity ′([(a X) (else Y)])) => ′(X) if S is bound to a
    ′(Y) otherwise
  • The tidentity function looks down into the tree for a t-sel because a t-sel may represent nothing in some contexts. Rewriting the previous example somewhat we get, [0156]
    (tidentity ′([(a X)] Y)) => ′(X Y) if S is bound to a
    ′(Y) otherwise
  • The tidentity function is important in that it provides the basic semantics for the other t-sel-sensitive tree walking operations. Considering the two basic Lisp tree (list) manipulating functions car (a.k.a. first) and cdr (a.k.a. rest) we get [0157]
  • (tcar x) is (car (tidentity x)) [0158]
  • (tcdr x) is (cdr (tidentity x)) [0159]
  • The tidentity function only looks for t-sels that are in the beginning of trees (lists). Thus in all contexts [0160]
  • (tidentity ′ (X [(a A)])) => ′ (X [(a A)]) [0161]
  • If a part of the compiler wanted to access the second list element of the list L, it would say (tcar (tcdr L)) [0162]
  • This same concept could be implemented in other languages. In C one would have to replace the use of the syntactic pointer field selection operator “->” on tree structures with a function call that would perform the tidentity operation. In C++ one could define the tree class to behave appropriately. [0163]
  • Looking back at the unistd+.h header shown at [0164] 1610 in FIG. 16, we see no selector forms there, but we stated earlier that there were four different variants of the function. The discovery of that variation arises from the application of name resolution during the analysis phase. Whenever a name is encountered in a context where it refers to another definition, the compiler finds the appropriate definition for the name and determines if the referenced definition has any context limitations or feature variations. If so, it replaces the name with an appropriate t-sel that reflects the context. That context is carried up in the analysis as if the t-sel had be explicitly coded in. What unistd+.h would look like after analysis is shown at 1901 in FIG. 19. The t-sel 1903 has two isel-groups in its sel-factors-expr, one at 1905 and the other at 1906. These are derived from the analysis phase that introduced t-sels 1907 and 1908. When AdI meta-compiler 905 generates ADE headers and libraries from the AdI source file containing the code shown at 1901, the result will be the four different readings for the interface for the pwrite_wchar function shown in the table at 1909. Unlike the previous example, there would be no exclusive iteration, because all cases are covered.
  • Using Metacompiler [0165] 905: FIG. 9
  • [0166] AdI metacompiler 905 reads an AdI system file and a set of AdI source files to produce a set of directories and sources that are then compiled on multiple systems to produce the complete environment. SDE development involves many steps.
  • 1. Compile—All source files are passed to metacompiler [0167] 905 compiler at once. This allows it to have the global perspective needed to provide makefiles for the rest of the steps.
  • 2. Verify—Perform the verification step on changed modules (and modules that have been potentially changed by the changes). This is performed by executing: [0168]
  • make -c gendir vfy [0169]
  • 3. Build—Compile, and link the generated components into the gendir/export directory by executing: [0170]
  • make -c gendir sde [0171]
  • 4. Package—Create distribution media for both compile-time and runtime use of the SDE. [0172]
  • 5. Install—loading either or both of the compile-time and runtime packages. [0173]
  • 6. Use—Place the SDE's bin directory on you path and compile away. Your customers will need the runtime. [0174]
  • The following is an outline of the top-level Gnu make file (gendir/Makefile) generated by the Compile step. It assumes that there are M modules and T target platforms. [0175]
    # Perform all steps
    all: vfy impl package
    # Perform all steps that you can for any module
    .Module1: vfy/.Module1 impl/.Module1
    ..
    .ModuleM: vfy/.ModuleM impl/.ModuleM
    # Perform all steps that you can for any target
    .Target1: vfy/.Target1 impl/.Target1
    ..
    .TargetT: vfy/.TargetT impl/.TargetT
    # Verify on all targets
    vfy: vfy/.Target1 .. vfy/.TargetT
    # Verify on particular targets
    vfy/.Target1: vfy/.Module1.Target1 .. vfy/..ModuleM.Target1
      $(MAKE) -c vfy .Target1
    ..
    vfy/.TargetT: vfy/.Module1.TargetT .. vfy/..ModuleM.TargetT
      $(MAKE) -c vfy .TargetT
    # Verify specific modules on specific targets
    vfy/.Module1.Target1: vfy/Module1.c module-dependencies
      $(MAKE) -c vfy .Module1.Target1
    ..
    vfy/.Module1.TargetT: vfy/Module1.c module-dependencies
      $(MAKE) -c vfy .Module1.TargetT
    ..
    vfy/.ModuleM.Target1: vfy/ModuleM.c module-dependencies
      $(MAKE) -c vfy .ModuleM.Target1
    ..
    vfy/.ModuleM.TargetT: vfy/ModuleM.c module-dependencies
      $(MAKE) -c vfy .ModuleM.TargetT
    # Build the implementation on all targets
    impl: impl/.Target1 .. impl/.TargetT
    [This is a duplicate of the vfy section with “impl”
    replacing “vfy”.]
    #
    package:
    # Clean up
    clean:
     rm [lots of stuff]
  • The compiler is invoked as follows: [0176]
  • adic [options] sysfile reference [targets] module . . . [0177]
  • Compile one or more AdI source modules. The argument are as follows: [0178]
    sysfile The pathname of a system file that defines the global
    parameters for all compilations.
    reference The name of a platform defined in a platform-def in the
    system file that will be used as the reference in this
    compilation.
    targets If present, a comma-separated list (without intervening
    spaces) of platform names that will be chosen as the targets
    for this compilation. The reference platform name may
    appear in the targets list, but there is no obligation that
    the reference platform be one of the target platforms. If
    not present, then all platforms defined in the system file are
    chosen as targets.
    module One or more header source modules. Modules are expected
    to be named with a .m suffix.
  • The results of compilation are a directory full of source code in the gendir. The file: gendir/Makefile is the top-level file used by the Gnu make utility to complete the process. [0179]
  • Options: [0180]
  • -E [0181]
  • Read performing literal and macro substitution and print. Note that if only the sys-file is present, then the -E applies to the sys-file. If not it applies to the other file arguments. [0182]
  • -gendir dir [0183]
  • Overrides the default of “gen” as the firectory to generate compiler output to. Note that a srparate directory is needed for each reference ABI that you wish to support. [0184]
  • -i [0185]
  • Attempt to include modules that are referenced in include forms, but not mentioned on the command line. (Mnemonic: I for include.) [0186]
  • -l [0187]
  • Compiles any given module only if its source or one of its direct or indirect include or insert dependencies has changed. All modules have an implicit dependency on the sys-file. (Mnemonic: L for lazy) [0188]
  • -mfile [0189]
  • Print the passed module names (without the corresponding “.m”) to file in a partial ordering with dependees first. (e.g. types typeuser ..) [0190]
  • -v [0191]
  • Print (on standard error output) the compiler version number and report progress in the compilation. [0192]
  • In a preferred embodiment, [0193] metacompiler 905 runs only on Linux systems. You also need the GNU gcc and GNU make programs for each system that you wish to target.
  • The compilation process produces the following directories of output that are contained in the gendir directory: [0194]
  • export [0195]
  • The directory that contains everything needed for the generated environment. It contains the following sub-directories: [0196]
  • headers—Contains all header file directories. (Typically just the one called include.) [0197]
  • lib—Contains all the link-time objects (libraries and a few object modules.) [0198]
  • rt—Contains the run-time shared objects that are needed by each target environment. Each object set is contained in a directory whose name is the same as the corresponding target. [0199]
  • Note that there is one link-time shared object for all targets and one run-time object for each target. [0200]
  • impl [0201]
  • A directory of sources for the implementation of the runtime environment for each target. Each library declared in the system file for compilation contains a sub-directory of the same name (with “lib” prefixed to it). Each library subdirectory in turn has two sub-directories called lib and rt which contain the sources for the link-time and run-time objects for the library. [0202]
  • src [0203]
  • A directory of runtime sources [that may move elsewhere][0204]
  • prove [0205]
  • A directory of files that are compiled and run on each target (in target-specific sub-directories) to prove that the meta-description is consistent with respect to each target. The verification process is controlled by the file prove/Makefile. [0206]
  • The SDE development process requires the following set of commands on each target that it supports on the front of your $PATH. Some have particular restrictions over standard analogs: [0207]
  • on.target Command [0208]
  • This command must exist for all defined targets. It sets up the appropriate path environment and performs a command, remotely if necessary. [0209]
  • gcc [0210]
  • Must produce normal (Dwarf) debugging information. It must also recognize the following special options (which if provided will be at the front of the command line before any other options or arguments). [0211]
    soname See the Linux ld(1) man page.
    dynamic See the Linux gcc(1) man page.
    dynamic-linker Specifies the path of the ELF interpreter
    export-dynamic See the Linux ld(1) man page.
    rpath See the Linux ld(1) man page.
    base-address Specifies the beginning address of the program.
  • gcc-ld-at address args. [0212]
  • Must call gcc (and ultimately ld) in a way that loads the program at location address. [0213]
  • ld [0214]
  • The linker program. [0215]
  • /usr/bin/_AdI_perl [0216]
  • This path name as well as the name _AdI_perl on your $PATH must be version 5 of perl. (The finny name reflects the fact that not all OSs agree on the name for the perl version 5 command.) [0217]
  • /AdI_bin/perl [0218]
  • Must point to the above perl. [0219]
  • Report Generation in Metacompiler [0220] 905: FIG. 20
  • In the preferred embodiment, [0221] metacompiler 905 can be run in reporting mode. In that mode, report generator 915 creates ADI reports 919. In the preferred environment, reports 919 are HTML pages that present the information in several views that are all reached from the top-level index.html file:
  • 1. An alphabetical view of all identifiers. (Most of the definitions that they are linked to in the example are omitted.) [0222]
  • 2. An alphabetical view of all header file names. Each header is planned to expand to a list of links to header files included in the header and links to the definitions that are contained in the header. [0223]
  • 3. A table of selectors that is currently not implemented. This table will describe all selector names used in the reporting. The selector names are the atoms of the context which combines them with logical operators. [0224]
  • 4. A table of sets of definitions that are different between pairs of platforms. This in an N by N table, where N is the number of platforms that were reported on. The diagonal of the table is blank because there are no differences between a platform and itself. The other cells contain pointers to lists of definitions that are different between platforms. [0225]
  • 5. A table of sets of definitions that are “extra” between pairs of platforms. [0226]
  • The links usually lead down to individual identifiers and the definition or definitions that are associated with them. Identifiers are organized into a flat pool of names, rather than a set of names within header files, to accommodate the fact that a definition is often in different places on different platforms. The location differences are often inconsequential to the user because many headers include others. [0227]
  • Once you get to an individual definition, it is presented in one of several forms depending on how it is defined. [0228]
  • A. If the identifier is identically defined in the same header file on all platforms, then it appears as a file name and a definition. [0229]
  • B. If the identifier is identically defined in different headers or is missing from some platforms, then the header names are prefixed with a context that indicates under which conditions the definition appears in a given file. [0230]
  • C. If the identifier has different definitions, then the description expands into a comparison table and a list of sets of context, header, and definition triples. [0231]
  • D. The comparison table contains links that indicate the nature of the difference between pairs of contexts. The only current comparison type is “dlc” which stands for different local components. Future comparison types will include “different referenced components”, and “different primitive type”. [0232]
  • The report generation tools are currently capable of comparing header file include topology and non-function macro definitions between two platforms with one feature-set view. The design of the browsing facilities, however, accommodates all C and C++ objects, between many platforms with any number of feature-sets. [0233]
  • Other embodiments may employ an interactive browser program in place of a generic HTML viewer. The interactive browser allows the user to interactively create specific views according to platform and feature set and will hide information that the user is not interested in. [0234]
  • FIG. 20 shows an example of a portion of a [0235] report 2001. Report 2001 was generated from a comparison of the header files of the Red Hat 6.2 and Suse 6.1 Linux distributions. The report shows all of the definitions that are present in the Suse 6.1 Linux distribution that are not present in the Red Hat 6.2 definitions. At the top of the report is an index 2003; clicking on a letter takes one to the portion of the report that contains terms beginning with the letter. At 2005 are shown the portions of the report for identifiers beginning with “A” and “B” and “C”.
  • FIG. 21 is part of the example report showing simple non-conflicting declarations. At [0236] 2101 is a macro that is defined identically in the same place on both systems. At 2102 is a macro that is defined identically in two different locations on the two systems. At 2103 is a macro that is defined identically and is in the same place on both Red Hat 6.2 and Suse 6.1, but also appears at another location on Red Hat 6.2.
  • FIG. 22 is a part of the example report showing a macro that appears in different forms. At [0237] 2201 is a table that indicates that there are two different definitions of the name A_ALTCHARSET and providing links to the actual definitions shown at 2202. The first definition is defined in one place on Suse 6.1, but in four places on Red Hat 6.2. The second definition appears only in Red Hat 6.2.
  • FIG. 23 is a part of the example report showing a more complicated example where there are three different definitions of a symbol. [0238]
  • CONCLUSION
  • The foregoing Detailed Description has disclosed to those skilled in the relevant arts how to make and use an improved program development environment for developing a program that is to execute on a number of platforms and has disclosed the best mode presently known to the inventor of practicing his invention. As will be immediately apparent to those skilled in the relevant arts, there are many ways other than the one disclosed herein of constructing programming environments according to the principles disclosed herein. For example, the particular forms in which programming environments like those described herein are implemented are strongly dependent on other features of the programming environment such as the language used for the source code and the manner in which information needed by the compiler during compilation is provided to the compiler. For instance, the preferred embodiment is intended for use with source code written in the C or C++ languages and compilers for those languages. Consequently, following the conventions for those languages and compilers, the database that describes the differences in the platform takes the form of a header file. In other embodiments, the database would have the form required for the compilers used in those embodiments. The particular forms of the run-time test library, the compatibility run-time library, and the platform proof source code are also strongly dependent on the language, compiler, and conventions of a given programming environment. [0239]
  • Similarly, the form of the AdI language used in the preferred embodiment includes fragments from the C language. In other embodiments, it would include fragments from the language used in those embodiments. Moreover, the form in which selectors are implemented in the AdI language is only one of many possible forms, and the form of the tree selector used in the meta-compiler is only one of many possible forms. [0240]
  • For all of the foregoing reasons, the detailed description is to be regarded as being in all respects exemplary and not restrictive, and the breadth of the invention disclosed here in is to be determined not from the detailed description, but rather from the claims as interpreted with the full breadth permitted by the patent laws. [0241]

Claims (7)

What is claimed is:
1. A metacompiler that makes a database which describes differences in the usage of program constructs between a plurality of platforms, the metacompiler comprising:
a reading component that reads a description of the differences written in a language interpretable by the metacompiler and produces an internal tree structure therefrom;
an analysis component that organizes the tree structure for simpler access to information therein: and
a code generation component that generates the database from the tree structure as organized by the analysis component.
2. The metacompiler set forth in claim 1 wherein:
the language describes the differences using structures including
selector names that are associated with the platforms; and
selectors that use the selector names to specify bindings of the program constructs for the platforms with which the selector names are associated.
3. The metacompiler set forth in claim 2 wherein:
a selector is represented in the internal tree structure by a tree selector that is associated with a definition in the internal tree structure of the construct for which the selector specifies the bindings, the tree selector specifying a set of bindings that produce unambiguous readings of the definition of the construct and the code generating component generating code as required for each of the unambiguous readings.
4. The metacompiler set forth in claim 3 wherein:
the definition of the construct is included in a tree which includes at least a definition of a further construct, the further construct having at least a further selector associated therewith; and
a tree selector associated with the tree specifies a set of bindings that produce unambiguous readings of the definition of the construct and the definition of the further construct and the code generating component generating code from the tree as required for each of the unambiguous readings.
5. The metacompiler set forth in claim 4 wherein:
there is a plurality of the further constructs; and
the analysis component carries information from a tree selector contained in the tree into the tree selector associated with the tree.
6. The metacompiler set forth in claim 4 wherein:
the code generation component includes a function which iterates through the bindings specified in the tree selector and produces a version of the tree for each of the bindings, the code being generated from each version of the tree.
7. An improved tree structure used in a compiler to represent the object being compiled, the improvement comprising:
a tree selector at a root of the tree structure or of a subtree thereof, the tree selector specifying a set of bindings for constructs in the tree that produce unambiguous readings of the constructs.
US10/860,371 2000-05-01 2004-06-02 Adaptive interface for a software development environment Abandoned US20040226004A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/860,371 US20040226004A1 (en) 2000-05-01 2004-06-02 Adaptive interface for a software development environment

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US20105100P 2000-05-01 2000-05-01
US09/672,739 US6769115B1 (en) 2000-05-01 2000-09-28 Adaptive interface for a software development environment
US10/860,371 US20040226004A1 (en) 2000-05-01 2004-06-02 Adaptive interface for a software development environment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/672,739 Division US6769115B1 (en) 2000-05-01 2000-09-28 Adaptive interface for a software development environment

Publications (1)

Publication Number Publication Date
US20040226004A1 true US20040226004A1 (en) 2004-11-11

Family

ID=32716726

Family Applications (2)

Application Number Title Priority Date Filing Date
US09/672,739 Expired - Lifetime US6769115B1 (en) 2000-05-01 2000-09-28 Adaptive interface for a software development environment
US10/860,371 Abandoned US20040226004A1 (en) 2000-05-01 2004-06-02 Adaptive interface for a software development environment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/672,739 Expired - Lifetime US6769115B1 (en) 2000-05-01 2000-09-28 Adaptive interface for a software development environment

Country Status (1)

Country Link
US (2) US6769115B1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061543A1 (en) * 2001-09-25 2003-03-27 Satoshi Misaka Computing system construction method under execution environment to be dependent on OS
US20050076105A1 (en) * 2003-09-18 2005-04-07 International Business Machines Corporation Apparatus, system and method of executing monolithic application programs on grid computing systems
US20050251583A1 (en) * 2004-04-26 2005-11-10 Rothman Michael A System and method to conditionally shrink an executable module
US20060080683A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Mechanism to circumvent restrictions of pre-written code components
US20060080682A1 (en) * 2004-10-12 2006-04-13 Picsel Research Ltd. Run time dynamic linking
US20060080680A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Platform independent dynamic linking
US20060159077A1 (en) * 2004-08-20 2006-07-20 Vanecek George Jr Service-oriented middleware for managing interoperability of heterogeneous elements of integrated systems
US20070011669A1 (en) * 2005-07-06 2007-01-11 International Business Machines Corporation Software migration
US20080127074A1 (en) * 2006-08-24 2008-05-29 International Business Machines Corporation Delayed production expansion by use of macros
US20080127088A1 (en) * 2006-11-27 2008-05-29 Red Hat, Inc. Cross-platform software package generation
US20080141228A1 (en) * 2006-11-20 2008-06-12 Samsung Electronics Co., Ltd. Method of pre-processing conditional region
US20110047533A1 (en) * 2009-08-20 2011-02-24 International Business Machines Corporation Generating Code Adapted for Interlinking Legacy Scalar Code and Extended Vector Code
US20130055227A1 (en) * 2011-08-24 2013-02-28 Accenture Global Services Limited Software application porting system
US10489131B2 (en) * 2017-01-25 2019-11-26 Fujitsu Limited Efficient compilation for link time optimization
CN113254065A (en) * 2021-07-14 2021-08-13 广州易方信息科技股份有限公司 Application software compatibility method and device

Families Citing this family (69)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017143B1 (en) * 1999-12-01 2006-03-21 Microsoft Corporation External resource files for application development and management
US7243335B1 (en) 2000-02-17 2007-07-10 Microsoft Corporation Method and system for reducing coding complexity by providing intelligent manipulable defaults
US7290243B1 (en) * 2001-02-28 2007-10-30 Apple Inc. Method and apparatus for application building using build styles
US7376937B1 (en) * 2001-05-31 2008-05-20 Oracle International Corporation Method and mechanism for using a meta-language to define and analyze traces
US6928638B2 (en) * 2001-08-07 2005-08-09 Intel Corporation Tool for generating a re-generative functional test
US7600222B2 (en) * 2002-01-04 2009-10-06 Microsoft Corporation Systems and methods for managing drivers in a computing system
US7234144B2 (en) * 2002-01-04 2007-06-19 Microsoft Corporation Methods and system for managing computational resources of a coprocessor in a computing system
US7343593B2 (en) * 2002-12-09 2008-03-11 Siemens Aktiengesellschaft Method and device for porting software programs to a target platform by way of an electronic data processing system
US20040148612A1 (en) * 2003-01-27 2004-07-29 Jesse Olsen System and method for generating an application programming interface from a schema
US7464408B1 (en) * 2003-08-29 2008-12-09 Solidcore Systems, Inc. Damage containment by translation
US8539063B1 (en) 2003-08-29 2013-09-17 Mcafee, Inc. Method and system for containment of networked application client software by explicit human input
US7840968B1 (en) 2003-12-17 2010-11-23 Mcafee, Inc. Method and system for containment of usage of language interfaces
US7448026B1 (en) * 2004-02-23 2008-11-04 Sun Microsystems, Inc. Method and apparatus for accuracy-aware analysis
US7788078B1 (en) * 2004-02-27 2010-08-31 Synopsys, Inc. Processor/memory co-exploration at multiple abstraction levels
US7783735B1 (en) 2004-03-22 2010-08-24 Mcafee, Inc. Containment of network communication
US8689202B1 (en) 2004-03-30 2014-04-01 Synopsys, Inc. Scheduling of instructions
US8677312B1 (en) 2004-03-30 2014-03-18 Synopsys, Inc. Generation of compiler description from architecture description
US7861236B2 (en) * 2004-05-19 2010-12-28 Computer Associates Think, Inc. System and method for version control for software development
US9280326B1 (en) * 2004-05-26 2016-03-08 Synopsys, Inc. Compiler retargeting based on instruction semantic models
US8006225B1 (en) 2004-06-03 2011-08-23 Synposys, Inc. Method and system for automatic generation of instruction-set documentation from an abstract processor model described using a hierarchical architectural description language
US7873955B1 (en) 2004-09-07 2011-01-18 Mcafee, Inc. Solidifying the executable software set of a computer
US8484618B2 (en) * 2005-01-12 2013-07-09 Advanced Testing Technologies, Inc. Test program set obsolescence mitigation through software and automatic test equipment processes
EP1691259A1 (en) * 2005-02-09 2006-08-16 Siemens Aktiengesellschaft Automatic input-help for computer programs
US7603552B1 (en) * 2005-05-04 2009-10-13 Mcafee, Inc. Piracy prevention using unique module translation
US7856661B1 (en) 2005-07-14 2010-12-21 Mcafee, Inc. Classification of software on networked systems
US7937692B2 (en) * 2005-11-30 2011-05-03 Red Hat, Inc. Methods and systems for complete static analysis of software for building a system
US7757269B1 (en) * 2006-02-02 2010-07-13 Mcafee, Inc. Enforcing alignment of approved changes and deployed changes in the software change life-cycle
US7895573B1 (en) 2006-03-27 2011-02-22 Mcafee, Inc. Execution environment file inventory
US7870387B1 (en) 2006-04-07 2011-01-11 Mcafee, Inc. Program-based authorization
US8352930B1 (en) 2006-04-24 2013-01-08 Mcafee, Inc. Software modification by group to minimize breakage
US20080288919A1 (en) * 2007-05-14 2008-11-20 Microsoft Corporation Encoding of Symbol Table in an Executable
US8555404B1 (en) 2006-05-18 2013-10-08 Mcafee, Inc. Connectivity-based authorization
US20080127180A1 (en) * 2006-07-31 2008-05-29 James John Glogowski Operating system automated application porting tool
US8332929B1 (en) 2007-01-10 2012-12-11 Mcafee, Inc. Method and apparatus for process enforced configuration management
US9424154B2 (en) 2007-01-10 2016-08-23 Mcafee, Inc. Method of and system for computer system state checks
US8175099B2 (en) * 2007-05-14 2012-05-08 Microsoft Corporation Embedded system development platform
US7671567B2 (en) * 2007-06-15 2010-03-02 Tesla Motors, Inc. Multi-mode charging system for an electric vehicle
US8195931B1 (en) 2007-10-31 2012-06-05 Mcafee, Inc. Application change control
US8515075B1 (en) 2008-01-31 2013-08-20 Mcafee, Inc. Method of and system for malicious software detection using critical address space protection
US8615502B2 (en) 2008-04-18 2013-12-24 Mcafee, Inc. Method of and system for reverse mapping vnode pointers
US8544003B1 (en) 2008-12-11 2013-09-24 Mcafee, Inc. System and method for managing virtual machine configurations
US9575878B2 (en) * 2009-03-16 2017-02-21 International Business Machines Corporation Data-driven testing without data configuration
US8381284B2 (en) 2009-08-21 2013-02-19 Mcafee, Inc. System and method for enforcing security policies in a virtual environment
US8341627B2 (en) * 2009-08-21 2012-12-25 Mcafee, Inc. Method and system for providing user space address protection from writable memory area in a virtual environment
US9552497B2 (en) 2009-11-10 2017-01-24 Mcafee, Inc. System and method for preventing data loss using virtual machine wrapped applications
US20110209128A1 (en) * 2010-02-24 2011-08-25 Nokia Corporation Systems, methods and apparatuses for facilitating targeted compilation of source code
US8925101B2 (en) 2010-07-28 2014-12-30 Mcafee, Inc. System and method for local protection against malicious software
US8938800B2 (en) 2010-07-28 2015-01-20 Mcafee, Inc. System and method for network level protection against malicious software
US8549003B1 (en) 2010-09-12 2013-10-01 Mcafee, Inc. System and method for clustering host inventories
US8464232B2 (en) * 2010-12-27 2013-06-11 Aleksandr F. Urakhchin Compiler compiler system with syntax-controlled runtime and binary application programming interfaces
US9075993B2 (en) 2011-01-24 2015-07-07 Mcafee, Inc. System and method for selectively grouping and managing program files
US9112830B2 (en) 2011-02-23 2015-08-18 Mcafee, Inc. System and method for interlocking a host and a gateway
US9594881B2 (en) 2011-09-09 2017-03-14 Mcafee, Inc. System and method for passive threat detection using virtual memory inspection
US8694738B2 (en) 2011-10-11 2014-04-08 Mcafee, Inc. System and method for critical address space protection in a hypervisor environment
US8973144B2 (en) 2011-10-13 2015-03-03 Mcafee, Inc. System and method for kernel rootkit protection in a hypervisor environment
US9069586B2 (en) 2011-10-13 2015-06-30 Mcafee, Inc. System and method for kernel rootkit protection in a hypervisor environment
US8800024B2 (en) 2011-10-17 2014-08-05 Mcafee, Inc. System and method for host-initiated firewall discovery in a network environment
US8713668B2 (en) 2011-10-17 2014-04-29 Mcafee, Inc. System and method for redirected firewall discovery in a network environment
US9052966B1 (en) * 2011-12-02 2015-06-09 Google Inc. Migrating code from a source format to a target format
US8739272B1 (en) 2012-04-02 2014-05-27 Mcafee, Inc. System and method for interlocking a host and a gateway
US8973146B2 (en) 2012-12-27 2015-03-03 Mcafee, Inc. Herd based scan avoidance system in a network environment
EP3061030A4 (en) 2013-10-24 2017-04-19 McAfee, Inc. Agent assisted malicious application blocking in a network environment
US9235871B2 (en) * 2014-02-06 2016-01-12 Oxide Interactive, LLC Method and system of a command buffer between a CPU and GPU
US10452508B2 (en) * 2015-06-15 2019-10-22 International Business Machines Corporation Managing a set of tests based on other test failures
US10621552B1 (en) * 2015-09-30 2020-04-14 Open Text Corporation Dynamically controlling case model structure using case fragments
CN106055363B (en) * 2016-05-31 2017-11-14 广东欧珀移动通信有限公司 A kind of method and mobile terminal for identifying file
US10671373B1 (en) 2018-12-30 2020-06-02 Microsoft Technology Licensing, Llc Mechanism for automatically incorporating software code changes into proper channels
CN110659088B (en) * 2019-09-20 2022-11-25 浙江杰芯科技有限公司 Method and system for expanding program under embedded environment
CN114510267B (en) * 2022-04-20 2023-03-21 麒麟软件有限公司 Program ABI interface compatibility calculation method based on Linux system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6003039A (en) * 1997-06-27 1999-12-14 Platinum Technology, Inc. Data repository with user accessible and modifiable reuse criteria
US6199195B1 (en) * 1999-07-08 2001-03-06 Science Application International Corporation Automatically generated objects within extensible object frameworks and links to enterprise resources
US6292932B1 (en) * 1999-05-28 2001-09-18 Unisys Corp. System and method for converting from one modeling language to another
US6356957B2 (en) * 1997-04-03 2002-03-12 Hewlett-Packard Company Method for emulating native object oriented foundation classes on a target object oriented programming system using a template library
US6408311B1 (en) * 1999-06-30 2002-06-18 Unisys Corp. Method for identifying UML objects in a repository with objects in XML content
US6526570B1 (en) * 1999-04-23 2003-02-25 Sun Microsystems, Inc. File portability techniques
US6721727B2 (en) * 1999-12-02 2004-04-13 International Business Machines Corporation XML documents stored as column data

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5293629A (en) * 1990-11-30 1994-03-08 Abraxas Software, Inc. Method of analyzing computer source code
US5583988A (en) * 1994-03-09 1996-12-10 National Instruments Corporation Method and apparatus for providing runtime checking features in a compiled programming development environment
US5774728A (en) * 1995-12-27 1998-06-30 International Business Machines Corporation Method and system for compiling sections of a computer program for multiple execution environments
US5907709A (en) * 1996-02-08 1999-05-25 Inprise Corporation Development system with methods for detecting invalid use and management of resources and memory at runtime
CA2175711A1 (en) * 1996-05-01 1997-11-02 Lee Richard Nackman Incremental compilation of c++ programs
US6330518B1 (en) * 1999-01-29 2001-12-11 International Business Machines Corporation Method and apparatus for assembling custom compliance tests for configurable specifications
US6370682B1 (en) * 1999-09-15 2002-04-09 Siemens Atkiengesellschaft System and method for developing reusable flexible and platform independent software using components
US6487713B1 (en) * 1999-09-24 2002-11-26 Phoenix Technologies Ltd. Software development system that presents a logical view of project components, facilitates their selection, and signals missing links prior to compilation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356957B2 (en) * 1997-04-03 2002-03-12 Hewlett-Packard Company Method for emulating native object oriented foundation classes on a target object oriented programming system using a template library
US6003039A (en) * 1997-06-27 1999-12-14 Platinum Technology, Inc. Data repository with user accessible and modifiable reuse criteria
US6526570B1 (en) * 1999-04-23 2003-02-25 Sun Microsystems, Inc. File portability techniques
US6292932B1 (en) * 1999-05-28 2001-09-18 Unisys Corp. System and method for converting from one modeling language to another
US6408311B1 (en) * 1999-06-30 2002-06-18 Unisys Corp. Method for identifying UML objects in a repository with objects in XML content
US6199195B1 (en) * 1999-07-08 2001-03-06 Science Application International Corporation Automatically generated objects within extensible object frameworks and links to enterprise resources
US6721727B2 (en) * 1999-12-02 2004-04-13 International Business Machines Corporation XML documents stored as column data

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6934892B2 (en) * 2001-09-25 2005-08-23 Hitachi, Ltd. Computing system construction method under execution environment to be dependent on OS
US20030061543A1 (en) * 2001-09-25 2003-03-27 Satoshi Misaka Computing system construction method under execution environment to be dependent on OS
US7493358B2 (en) * 2003-09-18 2009-02-17 International Business Machines Corporation Apparatus, system and method of executing monolithic application programs on grid computing systems
US20050076105A1 (en) * 2003-09-18 2005-04-07 International Business Machines Corporation Apparatus, system and method of executing monolithic application programs on grid computing systems
US7984095B2 (en) 2003-09-18 2011-07-19 International Business Machines Corporation Apparatus, system and method of executing monolithic application programs on grid computing systems
US20050251583A1 (en) * 2004-04-26 2005-11-10 Rothman Michael A System and method to conditionally shrink an executable module
US7853742B2 (en) * 2004-04-26 2010-12-14 Intel Corporation System and method to conditionally shrink an executable module
US20060159077A1 (en) * 2004-08-20 2006-07-20 Vanecek George Jr Service-oriented middleware for managing interoperability of heterogeneous elements of integrated systems
US20060080680A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Platform independent dynamic linking
US20060080683A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Mechanism to circumvent restrictions of pre-written code components
US20060080682A1 (en) * 2004-10-12 2006-04-13 Picsel Research Ltd. Run time dynamic linking
US20070011669A1 (en) * 2005-07-06 2007-01-11 International Business Machines Corporation Software migration
US7966611B2 (en) 2006-08-24 2011-06-21 International Business Machines Corporation Delayed production expansion by use of macros
US20080127074A1 (en) * 2006-08-24 2008-05-29 International Business Machines Corporation Delayed production expansion by use of macros
US20080141228A1 (en) * 2006-11-20 2008-06-12 Samsung Electronics Co., Ltd. Method of pre-processing conditional region
US8161466B2 (en) * 2006-11-20 2012-04-17 Samsung Electronics Co., Ltd Method of pre-processing conditional region
US20080127088A1 (en) * 2006-11-27 2008-05-29 Red Hat, Inc. Cross-platform software package generation
US8185872B2 (en) * 2006-11-27 2012-05-22 Red Hat, Inc. Cross-platform software package generation
US20110047533A1 (en) * 2009-08-20 2011-02-24 International Business Machines Corporation Generating Code Adapted for Interlinking Legacy Scalar Code and Extended Vector Code
US8458677B2 (en) * 2009-08-20 2013-06-04 International Business Machines Corporation Generating code adapted for interlinking legacy scalar code and extended vector code
US20130055227A1 (en) * 2011-08-24 2013-02-28 Accenture Global Services Limited Software application porting system
US9348568B2 (en) * 2011-08-24 2016-05-24 Accenture Global Services Limited Software application porting system
US10489131B2 (en) * 2017-01-25 2019-11-26 Fujitsu Limited Efficient compilation for link time optimization
CN113254065A (en) * 2021-07-14 2021-08-13 广州易方信息科技股份有限公司 Application software compatibility method and device

Also Published As

Publication number Publication date
US6769115B1 (en) 2004-07-27

Similar Documents

Publication Publication Date Title
US6769115B1 (en) Adaptive interface for a software development environment
US5276881A (en) ANDF producer using the HPcode-Plus compiler intermediate language
US5339419A (en) ANDF compiler using the HPcode-plus compiler intermediate language
US5581696A (en) Method using a computer for automatically instrumenting a computer program for dynamic debugging
US5280613A (en) ANDF installer using the HPcode-Plus compiler intermediate language
US5761511A (en) Method and apparatus for a type-safe framework for dynamically extensible objects
JP4841118B2 (en) Software development infrastructure
US5784553A (en) Method and system for generating a computer program test suite using dynamic symbolic execution of JAVA programs
Ishikawa et al. Design and implementation of metalevel architecture in C++-MPC++ approach
US6961931B2 (en) Dependency specification using target patterns
EP1639461A2 (en) An extensible type system for representing and checking consistency of program components during the process of compilation
Karasick The architecture of Montana: An open and extensible programming environment with an incremental C++ compiler
Doolin et al. JLAPACK–compiling LAPACK Fortran to Java
Chiba Open C++ programmer's guide for version 2
Coelho et al. Data and process abstraction in PIPS internal representation
Bachrach et al. D-expressions: Lisp power, Dylan style
Culpepper et al. Advanced macrology and the implementation of Typed Scheme
US4914659A (en) Method and apparatus for software branch analysis
Chiba OpenC++ 2.5 Reference Manual
Skalski Syntax-extending and type-reflecting macros in an object-oriented language
Moise et al. Reverse engineering scripting language extensions
Quinlan et al. Rose user manual: A tool for building source-to-source translators draft user manual (version 0.9. 11.115)
Gough Multi-language, multi-target compiler development: Evolution of the Gardens Point compiler project
Papaefstathiou et al. An introduction to the layered characterisation for high performance systems
Blume A Compilation Manager for SML/NJ User Manual

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION