FACTOID # 47: The fourteen unhappiest countries are all in Eastern Europe.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > Java Intermediate Language

In computer science, Java Intermediate Language is an intermediate language (which is a subset of XML and SGML) representing the type structure of a Java program. The language was proposed by the team of SableVM in McGill University in January 2002 to aid the analysis of a Java program with the goals of scalability and good performance. Computer science, or computing science, is the study of the theoretical foundations of information and computation and their implementation and application in computer systems. ... The Extensible Markup Language (XML) is a general-purpose markup language. ... The Standard Generalized Markup Language (SGML) is a metalanguage in which one can define markup languages for documents. ... Java language redirects here. ... SableVM is a clean room implementation of Java bytecode interpreter implementing the Java virtual machine specification, second edition. ... McGill University is a public co-educational research university located in Montréal, Québec, Canada. ... 2002 : January - February - March - April - May - June - July - August - September - October - November - December A timeline of events in the news for January, 2002. ...


The language has not seen much adoption outside the Sable team.


Example

Consider the following piece of Java code.

 public MyClass implements MyInterface extends MySupperClass { int MyField; void MyMethod (double x, double y) { double z; z = x + y; this.MyField = z } } 

This piece can be expressed in the language, as follows:

 <jil> <class name="MyClass" extends="MySupperClass"> <modifiers><modifier name="public" /></modifiers> <interfaces><interface name="myinterface" /></interfaces> <fields> <field name="MyField" type="int" /> </fields> <methods> <method name="MyMethod" returntype="void"> <parameters> <parameter name="x" type="double" /> <parameter name="y" type="double" /> </parameters> <locals> <local name="z" type="double" /> </locals> <statements> <!-- Each statement is expressed by some intermediate format for code generator like three address code. In the below a language called baf is used. --> <baf> <![CDATA[ $r2 = $r0 + $r1; this.MyField = (double) $r2; ]]> <!-- Here, we are assuming x is expressed as $r0, y $r1 and z $r2. </baf> </statements> </method> </methods> </class> </jil> 

External links


  Results from FactBites:
 
Intermediate language - Wikipedia, the free encyclopedia (377 words)
A variation in the meaning of this term, is those languages used as an intermediate language by some high-level programming languages which do not output object or machine code, but output the intermediate language only, to submit to a compiler for such language, which then outputs finished object or machine code.
Languages used for this fall in complexity between high-level languages and low-level languages, such as assembly languages.
C is used as an intermediate language by numerous programming languages including Eiffel, Sather, and Esterel.
  More results at FactBites »

 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.