[821] in java-interest

home help back first fref pref prev next nref lref last post

Execution Environment in "interpreter"

daemon@ATHENA.MIT.EDU (nataraj@cat.syr.edu)
Fri Jul 21 02:42:11 1995

From: nataraj@cat.syr.edu
To: java-interest-digest@java.sun.com
Cc: nataraj@cat.syr.edu, asriniva@cat.syr.edu
Date: Fri, 21 Jul 95 01:24:57 -0400


Hi,

I need someone to clarify some doubts re: the way java code is
interpreted by the "interpreter" and the neccesary environement to be
set up.

background:

What we are trying to do, is to implement "remote objects" by using a
spl keyword (this is more like a compiler project than a major work in
java). On seeing the 'remote' keyword, those objects should be
created on a remote machine and the methods invoked on those objects
(later in the code) got to be executed in the remote machine.

eg. 
    a = remotenew A();   //create 'a' ona remote machine R
    a.foo();             // foo(0 is invoked on the object 'a' on remote machine



Clarifications:

Our understanding from the code is (as far as we can browse and 'look-thru' the
code) :

 On a new object creation there are 2 scenerio:

 1. The object is the first of its class
      In this case, a new ExecEnv ( ee = EE() ) is created;
 2. There is/are other object(s) of the same type already created
      In this case, the new object is added to the pool (and a ref to
      that object is stored)


 Now for our "remote" execution to work ..the MAJOR factors as far as we
 understand are

 1. Exec Env to be either created (if our above assumptions are right)
    or the existing one should be passed on (which will be tough 8-( )

 2. Constant Pool (cb) for access to objects for "method invocation" etc
 3. "pc" should be passed on and result accordingly managed into the
     "pc" of the primary host.


 Is our idea about "ee" right? If so (or if not) any hints/pointers to
 "How to simulate a 'ee' on the 'remote host'" ??

So any information about this "ee" as to the
   a. interpreter
   b. machine (address space)
   c. context (already created objects/methods invoked)

is appreciated,

thanks,

-Nataraj

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post