1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
<!-- Title = the 'print_jvm_class' command -->
<TABLE BORDER=0 CELLSPACING=5 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE>
<CENTER><FONT COLOR="#FFFFFF" SIZE=+3><B>The <TT>print_jvm_class</TT> Command</B></FONT></CENTER>
</TD>
</TR>
</TABLE>
<BR><BR><BR>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF" SIZE="+2">Usage</FONT></TD>
</TR>
</TABLE>
<P>
<TT>print_jvm_class [options] <Path>[.class]</TT>
</P><P>
Command <TT>print_jvm_class</TT> prints a human readable version of
the <Path> class file. Printing is done on standard output.
This command was developed to check the byte code produced
by command <TT>compile_to_jvm</TT>. It is useful only if you want to
have a close look at the generated Java byte code.
</P>
<P>
This command may also be used to print Java byte code you
obtained with Java compilers, such as <TT>javac</TT>. We find the output of
<TT>print_jvm_class</TT> more readable than the output of <TT>javap</TT>.
</P>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF" SIZE="+2">Options</FONT></TD>
</TR>
</TABLE>
<P>
<DL COMPACT>
<DT>
<I>-help</I>:<BR>
<DD>
Display a brief summary of the command-line syntax and a complete
list of print_jvm_class options.
<BR><BR>
<DT>
<I>-verbose</I>:<BR><DD>
Print additional informations.
<BR><BR>
<DT>
<I>-version</I>:<BR><DD>
Show the number of the version of SmartEiffel you're using.
<BR><BR>
</DL>
<TABLE BORDER=0 COLS=1 WIDTH="100%" BGCOLOR="#3366FF" NOSAVE >
<TR NOSAVE>
<TD NOSAVE><FONT COLOR="#FFFFFF" SIZE="+2">Examples</FONT></TD>
</TR>
</TABLE>
<P>
First, you have to produce some class files using command
<TT>compile_to_jvm</TT>:
<DL COMPACT><DT><DD><TT>
compile_to_jvm -boost hello_world
</TT></DL>
Then, using command <TT>print_to_jvm_class</TT> you can print on
standard output a readable view of any produced class
file. The following command prints the main class:
<DL COMPACT><DT><DD><TT>
print_jvm_class hello_world.class
</TT></DL>
You can also print any class file of the hello_world
directory. For example, under Unix, you can print the
byte code produced for class INTEGER using command:
<DL COMPACT><DT><DD><TT>
print_jvm_class hello_world/integer.class
</TT></DL>
</P>
<!-- BL START -->
<!-- BL1 START -->
<CENTER>
<IMG SRC="se-line.gif" ALT="[Line]">
<BR>
<FONT SIZE="-1"><I>
Copyright © Dominique COLNET and Suzanne COLLIN -
<A HREF="mailto:SmartEiffel@loria.fr"><SmartEiffel@loria.fr></A>
<BR>
<!-- hhmts start -->
Last modified: Tue Feb 11 12:17:04 CET 2003
<!-- hhmts end -->
<BR>
</I></FONT><BR></CENTER>
|