File: print_jvm_class.html

package info (click to toggle)
smarteiffel 1.1-11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,288 kB
  • ctags: 40,785
  • sloc: ansic: 35,791; lisp: 4,036; sh: 1,783; java: 895; ruby: 613; python: 209; makefile: 115; csh: 78; cpp: 50
file content (100 lines) | stat: -rw-r--r-- 2,745 bytes parent folder | download | duplicates (2)
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] &lt;Path&gt;[.class]</TT>
</P><P>
Command <TT>print_jvm_class</TT> prints a human readable version of
the &lt;Path&gt; 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 &copy; Dominique COLNET and Suzanne COLLIN -
<A HREF="mailto:SmartEiffel@loria.fr">&lt;SmartEiffel@loria.fr&gt;</A>
<BR>
<!-- hhmts start -->
Last modified: Tue Feb 11 12:17:04 CET 2003
<!-- hhmts end -->
<BR>
</I></FONT><BR></CENTER>