Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 2232

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>1 The Oz Engine: ozengine</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="toc.html#label1">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node2.html#chapter.compiler">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="chapter.ozengine"><H1><A name="chapter.ozengine">1 The Oz Engine: <CODE>ozengine</CODE></A></H1><P>Like Java, Oz is also based on the idea of byte code execution. <CODE>ozengine</CODE> is an emulator that implements the Oz virtual machine. It is normally invoked as follows: </P><BLOCKQUOTE class="code"><CODE>ozengine&nbsp;</CODE><I>url</I><CODE>&nbsp;</CODE><I>args...</I></BLOCKQUOTE><P> where <I>url</I> identifies an Oz application (a pickled functor) and <I>args...</I> are the arguments for the application.</P><P>It is also possible to create <EM>executable</EM> functors. These are ordinary functors, except that when one is invoked as a shell command, it automatically starts <CODE>ozengine</CODE> on itself.</P><P>Under Windows, an alternative to <CODE>ozengine</CODE> is provided called <CODE>ozenginew</CODE>. While <CODE>ozengine</CODE> is a console-based application, <CODE>ozenginew</CODE> is a GUI-based application. Its output appears in message boxes instead of in a console window. Other than that, they behave the same.</P><P>Instead of supplying arguments on the command line, you can also indicate a preference for using a graphical interface for editing an application's input parameters: </P><BLOCKQUOTE class="code"><CODE>ozengine&nbsp;--gui&nbsp;</CODE><I>url</I></BLOCKQUOTE><P> The <CODE>--gui</CODE> option is convenient for starting applications directly from a web browser, simply by clicking. This makes <CODE>ozengine&nbsp;--gui&nbsp;%s</CODE> a good choice of a helper application for web documents with MIME type <CODE>application/x-oz-application</CODE>. Consult <A href="../apptut/node7.html#chapter.deployment">Chapter&nbsp;6 of ``Application Programming''</A> for more detailed information.</P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="toc.html#label1">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node2.html#chapter.compiler">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A>, <A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>