[kaffe] CVS kaffe (robilad): Fixed code and docs referring to Klasses.jar
Kaffe CVS
cvs-commits at kaffe.org
Tue Jan 1 10:31:02 PST 2008
PatchSet 7641
Date: 2008/01/01 18:29:40
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Fixed code and docs referring to Klasses.jar
2008-01-01 Dalibor Topic <robilad at kaffe.org>
* FAQ/FAQ.embedded: Removed sections on recompiling the class library without debug
symbols, as now we're using GNU Classpath from the system install.
* kaffe/kaffevm/baseClasses.c: Fixed comment to refer to rt.jar instead of
Klasses.jar.
* kaffe/scripts/kaffe.in: Fixed description of building of classpath.
Members:
ChangeLog:1.5139->1.5140
FAQ/FAQ.embedded:1.2->1.3
kaffe/kaffevm/baseClasses.c:1.77->1.78
kaffe/scripts/kaffe.in:1.42->1.43
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5139 kaffe/ChangeLog:1.5140
--- kaffe/ChangeLog:1.5139 Mon Dec 31 17:36:18 2007
+++ kaffe/ChangeLog Tue Jan 1 18:29:40 2008
@@ -1,3 +1,13 @@
+2008-01-01 Dalibor Topic <robilad at kaffe.org>
+
+ * FAQ/FAQ.embedded: Removed sections on recompiling the class library without debug
+ symbols, as now we're using GNU Classpath from the system install.
+
+ * kaffe/kaffevm/baseClasses.c: Fixed comment to refer to rt.jar instead of
+ Klasses.jar.
+
+ * kaffe/scripts/kaffe.in: Fixed description of building of classpath.
+
2007-12-31 Dalibor Topic <robilad at kaffe.org>
* TODO: Updated.
Index: kaffe/FAQ/FAQ.embedded
diff -u kaffe/FAQ/FAQ.embedded:1.2 kaffe/FAQ/FAQ.embedded:1.3
--- kaffe/FAQ/FAQ.embedded:1.2 Wed Aug 13 11:26:30 2003
+++ kaffe/FAQ/FAQ.embedded Tue Jan 1 18:29:42 2008
@@ -5,16 +5,12 @@
This FAQ explains how to optimize the storage space needed by the Kaffe Virtual Machine on systems with
limited resources.
-It describes the process for the tree structure of Kaffe's CVS from 01.06.2002...
-The same thing can be applied for older versions of Kaffe (1.0.6, 1.0.5), only the location of the files
-in the tree is different there.
In General
----------
Generally the storage space reduction is done by:
- - Compiling the classes with no debugging info.
- Removing the classes not needed by your application.
- Removing the native libraries not needed by the VM
after removing these classes.
@@ -25,6 +21,7 @@
- Removing other parts of Kaffe (header files, jars, docs,
development tools )
+
Compiling Kaffe
---------------
@@ -56,7 +53,7 @@
--without-profiling
--without-stats
- To be sure that these are applied (for example) check the gcc otptions used during the compilation
+ To be sure that these are applied (for example) check the gcc options used during the compilation
for "-g".
4. If you don't enable the use of pthreads you will save some storage space from the
@@ -67,27 +64,6 @@
--disable-gcj
-
-Compiling the classes
----------------------
-
-You can compile the classes that will be included in the rt.jar archive without debugging.
-Currently (13.08.2003) the rt.jar archive is about 2425K with debugging and 2117K without
-debugging info in the classes.
-You can compile the classes without debugging using the compiler from SUN's or IBM's JDK
-with the -g:none option.
-Go to <KAFFE_SRC>/ibraries/javalib and do:
-export -n JAVA
-export -n JAVAC
-export -n CLASSPATH
-export JAVAC="<PATH_TO_JDK>/bin/javac"
-export JAVAC_FLAGS="-g:none -bootclasspath lib/"
-make Klasses
-
-For more details on recompiling Klasses.jar check FAQ/FAQ.classlibrary-compile.
-
-
-
Stripping rt.jar
----------------
@@ -98,33 +74,26 @@
kaffe/applet and kaffe/awt brunches from rt.jar.
The same way you can remove beans, security etc.
-I usually remove comm.jar, microsoft.jar, pjava.jar, rmi.jar and servlet.jar too, because I either
-don't use them or have my own implementations of these classes/interfaces that are part of
-my application's jars.
-
The whole thing saves me about 1MB from the jars only, but that depends on the application and the device.
-
Removing the native libs
------------------------
By removing certain classes from the jars you have no more need from certain native libraries.
Depending on your target arch these libraries are in <KAFFE>/jre/lib/<ARCH>/
-Following the example above I usually remove libawt* and libmicrosoft*.
-
+Following the example above I usually remove libawt*.
Removing the binaries
---------------------
Many of the tools that Kaffe offers are of no need on the target device.
-I usually remove everithing from <KAFFE>/bin except the "kaffe" script.
+I usually remove everything from <KAFFE>/bin except the "kaffe" script.
The same thing should be done in <KAFFE>/jre/bin - just leave kaffe-bin and kaffe.
The two kaffe shell scripts too can be removed but then you must take care of the
environment setup for the VM. And if you use a compressed filesystem the text files are
not to be really considered as a storage problem.
-
Stripping the native binaries
Index: kaffe/kaffe/kaffevm/baseClasses.c
diff -u kaffe/kaffe/kaffevm/baseClasses.c:1.77 kaffe/kaffe/kaffevm/baseClasses.c:1.78
--- kaffe/kaffe/kaffevm/baseClasses.c:1.77 Tue Aug 28 15:13:35 2007
+++ kaffe/kaffe/kaffevm/baseClasses.c Tue Jan 1 18:29:42 2008
@@ -111,7 +111,7 @@
Hjava_lang_Class* javaLangClassNotFoundException;
Hjava_lang_Class* javaLangNoClassDefFoundError;
Hjava_lang_Class* javaLangStackOverflowError;
-/* Let's not load this if we can't open Klasses.jar */
+/* Let's not load this if we can't open rt.jar */
Hjava_lang_Class* javaIoIOException;
static Hjava_lang_Class** stateCompleteClass[] = {
Index: kaffe/kaffe/scripts/kaffe.in
diff -u kaffe/kaffe/scripts/kaffe.in:1.42 kaffe/kaffe/scripts/kaffe.in:1.43
--- kaffe/kaffe/scripts/kaffe.in:1.42 Mon Dec 17 18:28:43 2007
+++ kaffe/kaffe/scripts/kaffe.in Tue Jan 1 18:29:42 2008
@@ -14,9 +14,8 @@
# are composed in the following order:
#
# 1. a user-specified CLASSPATH or .
-# 2. Klasses.jar in $datadir/kaffe
-# 3. Kaffe extensions jar files in $datadir/kaffe
-# 4. classes.zip in $datadir/kaffe iff it exists.
+# 2. rt.jar in $jrelibdir
+# 3. Kaffe extensions jar files in $jrelibdir
#
# Note that as the last thing we slurp in the files $datadir/kafferc
# and $HOME/.kafferc (in that order) if they exist. This allows site
More information about the kaffe
mailing list