jvm_booksrc

所属分类:Java编程
开发工具:Java
文件大小:1259KB
下载次数:19
上传日期:2007-01-27 12:59:42
上 传 者ys_yj
说明:  《java virtual machine》是研究jvm的一本书,由台湾的蔡学庸翻译,这是例子源码
("java virtual machine" is the one jvm, from Taiwan's Tsai Yong translation, which is the source code examples)

文件列表:
jasmin-2.3\html2x\xt.html (14709, 2006-08-10)
jasmin-2.3\html2x\jasmin_icon.jpg (4992, 2006-02-05)
jasmin-2.3\html2x\style.css (890, 2006-02-05)
jasmin-2.3\docs\about.html (6249, 2006-02-05)
jasmin-2.3\docs\guide.html (18196, 2006-02-05)
jasmin-2.3\docs\index.html (1953, 2006-02-05)
jasmin-2.3\docs\instructions.html (9627, 2006-02-05)
jasmin-2.3\docs\jasmin_icon.jpg (4992, 2006-02-05)
jasmin-2.3\docs\javavm.gif (8749, 2006-02-05)
jasmin-2.3\docs\style.css (890, 2006-02-05)
jasmin-2.3\docs\syntax.bnf (2125, 2006-02-05)
jasmin-2.3\examples\ANewArray.j (1245, 2006-02-05)
jasmin-2.3\examples\AnInterface.j (827, 2006-02-05)
jasmin-2.3\examples\Arrays.j (1450, 2006-02-05)
jasmin-2.3\examples\Catch.j (2099, 2006-02-05)
jasmin-2.3\examples\Checkcast.j (809, 2006-02-05)
jasmin-2.3\examples\Count.j (1510, 2006-02-05)
jasmin-2.3\examples\HelloWeb.html (106, 2006-02-05)
jasmin-2.3\examples\HelloWeb.j (2227, 2006-02-05)
jasmin-2.3\examples\HelloWorld.class (386, 2006-02-05)
jasmin-2.3\examples\HelloWorld.j (700, 2006-02-05)
jasmin-2.3\examples\Implementor.j (1293, 2006-02-05)
jasmin-2.3\examples\InvokeInterface.j (1185, 2006-02-05)
jasmin-2.3\examples\MultiANewArray.j (874, 2006-02-05)
jasmin-2.3\examples\MultiArrays.j (1310, 2006-02-05)
jasmin-2.3\examples\NewArray.j (864, 2006-02-05)
jasmin-2.3\examples\Switch.j (808, 2006-02-05)
jasmin-2.3\examples\Uncaught.j (1006, 2006-02-05)
jasmin-2.3\examples\VerifyTest.j (1207, 2006-02-05)
jasmin-2.3\examples\VerifyTest1.j (2004, 2006-02-05)
jasmin-2.3\lib\ant.jar (999966, 2006-02-05)
jasmin-2.3\lib\ant-launcher.jar (8673, 2006-02-05)
jasmin-2.3\lib\java_cup.jar (61530, 2006-03-12)
jasmin-2.3\lib\jas\JASMIN_NOTES.txt (271, 2006-02-05)
jasmin-2.3\lib\jas\examples\exprcomp.jas (3298, 2006-02-05)
jasmin-2.3\lib\jas\examples\exprcomp.java (7204, 2006-02-05)
jasmin-2.3\lib\jas\examples\hworld.jas (2384, 2006-02-05)
jasmin-2.3\lib\jas\examples\hworld.java (2808, 2006-02-05)
... ...

Jasmin README file 1 March 1997, Jonathan Meyer Last updated October 2004 Introduction ------------ Welcome to Jasmin version 1.1. Jasmin is a Java Assembler Interface. It takes ASCII descriptions for Java classes, written in a simple assembler-like syntax, using the Java Virtual Machine instruction set. It converts them into binary Java class files suitable for loading into a Java interpreter. Jasmin was originally written as the companion to the book "Java Virtual Machine", published by O'Reilly, written by Jon Meyer and Troy Downing. (See http://www.ora.com/catalog/javavm/). The book is now out of print. However, the Jasmin assembler retains its usefulness as a utility, and continues its life as an OpenSource project. Background ---------- Jasmin is today a little long in the tooth. It was originally coded in 1996 as a stop-gap until Sun released their own assembler. It has seen no major upgrades since 1997. By 2004 Sun still has not released an official assembler, so I decided to release Jasmin as a sourceforge project. Hopefully this will inject some fresh life into the project... Home Page --------- Check out the Jasmin home page at: http://jasmin.sourceforge.net Requirements ------------ Jasmin is written in Java, and should work with most Java 1.1 environments. To run Jasmin you need to have a Java 2 Runtime Environment available (e.g. JDK 1.4). This can be downloaded from "http://www.javasoft.com/j2se/". Getting Started --------------- The Jasmin distribution contains a jasmin.jar file holding the Jasmin assembler. To run Jasmin, execute the Jarfile, specifying any files to assemble as command-line parameters, e.g. to assemble the "HelloWorld.j" file in examples, first use cd to change into the Jasmin directory: cd c:\jasmin-1.1 [Windows] or cd ~/jasmin-1.1 [Unix] Then, to run Jasmin, use: java -jar jasmin.jar examples\HelloWorld.j [Windows] or java -jar jasmin.jar examples/HelloWorld.j [Unix/MacOsX] After running Jasmin as above, it generates a compiled HelloWorld.class file in the examples directory. You can then run the HelloWorld program by doing: java examples.HelloWorld Build Instructions ------------------ Jasmin uses Ant as its build mechanism. See build.xml for instructions on how to build Jasmin. In brief, you need to: 1. Start a Terminal or Command window. 2. Change (cd) into the Jasmin directory 3. Make sure that java, javac etc. are on your path 4. Run build.bat (Windows) or build.sh (Unix). For example, on Windows, this might look something like: cd c:\jasmin-1.1 # change to Jasmin directory build all Or, for Unix, it might be like: cd ~/jasmin-1.1 # change to Jasmin directory ./build.sh all These scripts use the build.xml configuration file to specify build parameters. Where Next ---------- After trying Jasmin out, have a look at the HelloWorld.j source in the examples directory, try compiling and running the other examples. There is documentation for Jasmin in the doc directory. You should probably start with the 'guide.html' document. Files ----- The following files are included in this distribution: README.txt - this file jasmin.jar - executable Jar file containing Jasmin assembler examples/ - directory containing example files written for Jasmin src/ - the Java source code and for the jasmin package lib/ - Contains Java sources for the java_cup and jas packages docs/ - various documentation files. Copyright --------- Jasmin is Copyright (1997-2004) Jonathan Meyer, under the terms of the GNU General Public License. See license-jasmin.txt for more. Jasmin uses the JAS package which has its own copyright - see lib/jas/README. [sbktech.org no longer seem to be in existence, but the code lives on in this project]. Jasmin utilizes Scott E. Hudson's Java Cup package v0.9e, which is also in the lib directory. See http://www.cs.princeton.edu/~appel/modern/java/CUP/

近期下载者

相关文件


收藏者