Execute bytecode on LVM

Christian Schulte schulte at imit.kth.se
Thu Feb 12 13:35:07 CET 2004


Please bear in mind that the LVM decsribed by Mehl is an abstraction of the
true Mozart VM, so they will not have the same instruction set. Otherwise,
maybe Leif can comment on that?

Cheers
Christian

--
Christian Schulte, http://www.imit.kth.se/~schulte/ 

-----Original Message-----
From: mozart-users-bounces at mozart-oz.org
[mailto:mozart-users-bounces at mozart-oz.org] On Behalf Of Per Kristian Lehre
Sent: Thursday, February 05, 2004 6:46 PM
To: users at mozart-oz.org
Subject: Execute bytecode on LVM



Hi,

I would like to compile "some language" into LVM bytecode. Mehl's thesis 
describes the vm and its instruction set very well.

Chapter 4 on the Application Programmer's Interface describes a method 
assemble:

{Compiler.assemble +Ts +Xs +SwitchR ?P}

where Ts is a list of bytecode instructions for the virtual machine. How 
should I encode the bytes? Appendix D isn't very helpful. 
An example would be great! 

What is the easiest way to execute my own bytecode?  (The compiler will be 
written in Mozart.) 

Thanks in advance,
-- 
Per Kristian Lehre

_______________________________________________
mozart-users mailing list
mozart-users at mozart-oz.org
http://www.mozart-oz.org/mailman/listinfo/mozart-users




More information about the mozart-users mailing list