Sophie

Sophie

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

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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>B Mozart System Development Support</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="node9.html#appendix.keybindings">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node11.html#appendix.api">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="appendix.devel"><H1><A name="appendix.devel">B Mozart System Development Support</A></H1><P> The commands and user options described in this section are probably only interesting for people developing or extending parts of Mozart and thus compiling their own system components. They provide for testing parts of the system locally before installing and for running them under the GNU Debugger gdb. </P><P> For completeness and as a reference for the developers themselves, they are described here nevertheless. </P><H2><A name="label241">B.1 Viewing Emulator Bytecode</A></H2><P> The <A name="label242"></A><SPAN class="index">bytecode</SPAN> produced by the compiler can be displayed conveniently in an Emacs buffer. See <A href="node4.html#section.feeding">Section&nbsp;4.3</A> for a description of the feedable regions. </P><DL><DT class="command"><A name="label243"></A><SPAN class="index"><CODE>oz-to-emulatorcode-buffer</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>command</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DT class="command"><A name="label244"></A><SPAN class="index"><CODE>oz-to-emulatorcode-region</CODE></SPAN> <CODE><I>START</I></CODE><CODE>&nbsp;</CODE><CODE><I>END</I></CODE> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>command</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DT class="command"><A name="label245"></A><SPAN class="index"><CODE>oz-to-emulatorcode-line</CODE></SPAN> <CODE><I>COUNT</I></CODE> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>command</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DT class="command"><A name="label246"></A><SPAN class="index"><CODE>oz-to-emulatorcode-paragraph</CODE></SPAN> <CODE><I>COUNT</I></CODE> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>command</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P><A name="label247"></A> The corresponding text region is prefixed by </P><BLOCKQUOTE><PRE><SPAN class="reference">\localSwitches</SPAN>&nbsp;<BR><SPAN class="reference">\switch&nbsp;-core&nbsp;+codegen&nbsp;+outputcode&nbsp;-feedtoemulator</SPAN>&nbsp;<BR></PRE></BLOCKQUOTE><P> and fed to the Oz Compiler. If compilation succeeds, the resulting source file will be displayed in the Oz Temporary buffer. </P></DD><DT class="command"><A name="label248"></A><SPAN class="index"><CODE>ozm-mode</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>command</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>This is the major mode for displaying (especially fontifying) bytecode. Loading a file with extension <CODE>.ozm</CODE> automatically puts a buffer into Oz-Machine mode. You can tell a buffer is in Oz-Machine mode by the string <CODE>Oz-Machine</CODE> in its <A name="label249"></A><SPAN class="index">mode line</SPAN>. </P></DD></DL><P> </P><H2><A name="label250">B.2 Testing Locally</A></H2><P> One part of the support is concerned with testing system functors locallyetc. This part is now subsumed and replaced by profiles (see <A href="node6.html#chapter.profiles">Chapter&nbsp;6</A>). </P><DIV id="section.intro.gdb"><H2><A name="section.intro.gdb">B.3 Running under gdb</A></H2><P>This part is now also subsumed and replaced by profiles (see <A href="node6.html#chapter.profiles">Chapter&nbsp;6</A>). </P></DIV></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node9.html#appendix.keybindings">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node11.html#appendix.api">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>