20071024 uclinux java jikes kaffe
http://www.yippeesoft.com
据说KAFFE可以运行在UCLINUX,可是。。。。。
说要JIKES。。。
然后要 zlib。。。。。。
我想,这样还能到UCLINUX。。。。。。。
We have successully ported Kaffe JVM (www.kaffe.org) to our
ARM7TDMI/uClinux platform (B2).
Kaffe was initially developed for x86/Linux platform but it\’s enough
flexible to fit an embedded system too!
I have not tryied to port CDC due the fact that it\’s not an opensource project.
Unfortunately I have never worked with OSGi Framework so I don\’t really
know if it\’s needs some special
feature of the JVM (is it pure Java code or has some native code too?).
Maybe you can ask to Kaffe mailing list too
set JAVA_HOME=/home/sf/j2sdk1.4.2_04
export JAVA_HOME=/home/sf/j2sdk1.4.2_04
set PATH=$JAVA_HOME/bin:$PATH
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH =.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
-bootclasspath bootclasspath
Cross-compile against the specified set of boot classes. As with the user class path, boot class path entries are separated by colons (:) and can be directories, JAR archives, or ZIP archives.
-extdirs directories
Cross-compile against the specified extension directories. Directories is a colon-separated list of directories. Each JAR archive in the specified directories is searched for class files.
As you can see, Jikes has moved again. We\’re now hosted at SourceForge®. This move was a result of IBM\’s decision to pull out of the project hosting space. Since there was a great amount of similarity between sf.net and dw/oss, the change will be mostly cosmetic.
SourceForge.net Logo
What is Jikes?
JikesTM is a compiler that translates JavaTM source files as defined in The Java Language Specification into the bytecoded instruction set and binary format defined in The Java Virtual Machine Specification.
You may wonder why the world needs another Java compiler, considering that Sun provides javac free with its SDK. Jikes has five advantages that make it a valuable contribution to the Java community: [OSI Certified Logo]
* Open source. Jikes is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.
* Strictly Java compatible. Jikes strives to adhere to both The Java Language Specification and The Java Virtual Machine Specification as tightly as possible, and does not support subsets, supersets, or other variations of the language. The FAQ describes some of the side effects of this strict language conformance.
* High performance. Jikes is a high performance compiler, making it ideal for use with larger projects.
* Dependency analysis. Jikes performs a dependency analysis on your code that provides two very useful features: Incremental builds and makefile generation.
* Constructive Assistance. Jikes strives to help the programmer write better code in two key ways. Jikes has always strived to provide clear error and warning text to assist the programmer in understanding problems, and now with release 1.19 Jikes helps point out common programming mistakes as documented in Effective Java.
The Config
CC=m68k-elf-gcc NM=m68k-elf-nm AR=m68k-elf-ar \\
CFLAGS="-Wall -g -m5307 -Wl,-elf2flt -Os -lc " \\
LDFLAGS="-g -m5307 -Wl,-elf2flt" \\
KAFFEH=/root/workspace/kaffe/kaffe/kaffeh \\
/root/workspace/kaffe/configure \\
–host=m68k-linux \\
–build=i686-linux \\
–with-engine=intrp \\
–enable-pure-java-math \\
–with-threads=unix-jthreads \\
–disable-direct-threading \\
–prefix=/uclinux/jvm/ \\
–disable-fastjar \\
–disable-sound \\
–disable-alsa \\
–without-alsa \\
–without-esd \\
–disable-gtk-peer \\
–disable-alsatest \\
–disable-esdtest \\
–without-x \\
–disable-xmltest \\
–disable-xslttest \\
–disable-debug \\
–disable-native-awt \\
–disable-feedback \\
–without-profiling \\
–without-stats \\
–disable-gcj \\
–disable-xawt-xi18n \\
–disable-fastjar \\
–disable-shared \\
–with-staticlib \\
–with-staticbin \\
–with-staticvm \\
–without-gmp \\
–disable-rpath \\
–disable-libtool-lock \\
–with-jikes=/opt/jikes/bin/jikes
~
Error Code: 258
MSI (s) (40!CC) [19:00:16:625]: 产品: Microsoft SQL Server 2005 — 错误 29515。SQL Server 安装程序无法连接到数据库服务进行服务器配置。 错误为: [Microsoft][SQL Native Client]共享内存提供程序: 超时错误 [258]. 有关详细信息,请参阅服务器错误日志和安装日志。有关如何查看安装日志的详细信息,请参阅 SQL Server 联机丛书中的“如何查看安装日志文件”。
错误 29515。SQL Server 安装程序无法连接到数据库服务进行服务器配置。 错误为: [Microsoft][SQL Native Client]共享内存提供程序: 超时错误 [258].
同事点个重试就OK了。。。。。。
Compiling Kaffe
—————
- Configure-ing:
1. You must decide if you will use a static or a dynamically linked VM.
In most cases a shared VM is the preferable scenario – it\’s smaller but you
need to be sure that you have all the libraries needed on the target device.
In this case specify the following options to the configure script:
In the case when only java based applications will run on the device and they
will be started directly after the kernel boots (for example instead of init)
it is a good idea to use a static VM and no libraries on the target board.
Pass these options to configure:
2. Choose the engine.
My experience shows that on systems with slower CPUs the intrp engine is
faster than jit.
You might try both of them to see what fits your needs/device best.
The factor here is the speed because the difference between the storage used with jit and
the one used with intrp is not considerable. If your target platform supports jit3 you
may consider testing that too.
3. Remove the profiling and debugging (at least for the final sollution):
–disable-debug
–disable-xprofiling
–disable-xdebugging
–disable-feedback
–without-profiling
–without-stats
To be sure that these are applied (for example) check the gcc otptions used during the compilation
for "-g".
4. If you don\’t enable the use of pthreads you will save some storage space from the
libpthreads.so but if other applications will use it on the target device you might
enable it.
5. Disable the gcj support:
–disable-gcj
历史博文
- 20081125 内存 优化 - 2009
- 20070225 boblog 备份 插件 update - 2007
- 0320 Convert Long to Short File Names in C# - 2006
- VB资源文件多语言版本 - 2005
- µC/OS-II UCOSII学习笔记5 - 2005
- µC/OS-II UCOSII学习笔记4 - 2005