Features of ASIS
Ada Semantic Interphase Specification under the ISO/IEC 8652 Ada 95 Reference Manual (Ada Language Referencing Manual, 1994) is defined as an interface amidst an Aria environment and other tools requiring information from the Aria environment. Features of ASIS based tools could include: * high quality code analysis * automated code monitors * browsers * call tree tools * code reformators * coding standards compliance tools * correctness verifiers * debuggers * dependency tree analysis tools * design tools * document generators * metrics tools *Main abstractions
In ASIS, there are 3 main abstractions that exist in the Ada 'private' types. This consists of Context, Compilation_Unit and Element. While there are additional types of abstractions also involved but the 3 mentioned are the fundamentals.Compilation_Unit
provides the ‘black-box’ view of a compilation unit, considering the unit as a whole. It may be decomposed into ASIS Element
and then analyzed in ‘white-box’ fashion."''
Examplies of these properties given can include:
# Time of last update
# Name of object containing unit's source text
Structure of ASIS
The ASIS application structure can be categorized into 3 categories; Setup ASIS Analysis, Process Compilation Units and Complete ASIS Analysis. This structure is to help in supporting various code analysis programs that appear in the Ada programming language.Setup ASIS analysis
The first step to the structure of ASIS analysis is to set it up efficiently. During this step, various tasks and programs are initialised and established. For example, as identified by William Colket (1999), this step is when the ASIS program initializes ASIS, establishes ASIS context and state object, associates the ASIS Context with the analysis, opens the ASIS context, and performs any pre-processing needed to support the ASIS analysis. The first step is generally to get the ASIS analysis up and running and be ready to use efficiently and effectively.Process compilation units
The setup is then followed by "processing compilation units", during this time is when elements are sampled and analysed to fit into the ASIS Context that had been opened and associated with at the beginning of the ASIS structure. During this step, it mainly processes most of the ASIS application elements in correlation with the ASIS context, it also has the added capability to perform compilation units before and after processing has been done.Complete ASIS analysis
The last and final stage of the ASIS structure is the completion of ASIS analysis. This is where everything is finalised and reviewed to perform any post processing to the ASIS analysis. The ASIS context is also closed and disassociated and ASIS is eventually finalised.Design criteria
As ASIS continues to evolve similarly so does the evolution of its design criteria. The criteria for how ASIS can be designed can be sorted into 9 different categories; wide acceptance, transportability, uniformity and cohesiveness, implementability, state of technology, extensibility, ada terminology and style, performance and minimal set of interfaces.1. Wide acceptance
It must be designed according to this criteria so that a wide variety of tools can be used for ASIS. Designing it with this allows the interface library to be more flexible and available for tools across other platforms, Ada vendor implementations. It also allows for it to reduce training time for tool users and developers.2. Transportability
ASIS must also be designed so it has the capability to be transferred from one computer to another computer or another environment to another.3. Uniformity and cohesiveness
It should also be consistent in properties, concepts, types and operations but also be kept as a simple and coherent operation.5. State of technology
The state of technology must always be updated and advanced to ensure no issues take place. Additionally, it should be ensured that all possible variations and versions of ASIS will be coherent and efficient.6.
7. Ada terminology and style
ASIS should also adapt to the terms and conditions of style and definitions to the Ada Reference Manual.8. Performance
"ASIS design must allow for efficiency from both the client view and implementation view"9. Minimal set of interfaces
"It should allow clients to implement additional layered interfaces using the primitive operations provided."Uses of ASIS
ASIS for GNAT
ASIS has been used by Adacore to implement an ASIS standard in the utilisation of ASIS-for-GNAT applications. ASIS can be used for GNAT through typical applications such as: “Static Analysis (property verification), Code instrumentation, Design and document generation tools, Metric testing or timing tools, Dependency Tree Analysis Tools, Type Dictionary Generators, Coding standards Enforcement Tools, Language Translators, Quality Assessment Tools, Source Browsers and Formatters and Syntax Directed Editors” (ASIS for GNAT). This methodology has also been used to develop numerous tools with the assistance of ASIS including; # gnatelim # gnatstub # gnatcheck # gnatpp # gnatmetric.ASIS as insulator
Pace Drury (1999) utilises ASIS to create a code for his project named ‘SIDPERS-3’ where the code is used to identify intimate details and variations seen in Commercial Off the Shelf (COTS) generated from data base interaction Drury used ASIS for his project where ASIS created a new layer of Ada code which successfully insulated the software developer from the same generated Ada code specifics. Having written such a difficult code called ‘generate_db_support_code’ which majorly consisted of Ada code, the aim of it were to open 2 files, examine contents and create two new files based on the prior 2 files. ASIS had been used to examine the structure of the code efficiently, making it easier to store and link to a list containing Ada language. ASIS coherently completes what is asked to do and successfully gains constant and secure access to the data base information which meets the project’s needs.AdaControl
AdaControl is a free (GMGPL) tool that detects the use of various kinds of constructs in Ada programs. Its uses include checking of coding standards, exploring the use of Ada features, making statistics, and more. It exploits all the power of ASIS, and can be considered as the most typical ASIS application.References
Additional
#''ISO/IEC 15291: Information technology — Programming languages — Ada Semantic Interface Specification (ASIS)'' #Ada Language Reference Manual. Version 6.0 21 December 1994. Copyright (C) 1992, 1993, 1994, 1995 Intermetrics, Inc.External links