Thread: [Sablevm-user] hello
Brought to you by:
egagnon
From: Vladimir L. <vla...@wr...> - 2004-04-15 23:05:17
|
Hi, I am looking at using Java for embedded development. I am wondering if SableVM is suitable for embedded development? How does it compare to GCJ? Thanks in advance, Vlad |
From: Etienne G. <gag...@uq...> - 2004-04-18 17:37:07
|
Vladimir Levin wrote: > I am looking at using Java for embedded development. I am wondering if > SableVM is suitable for embedded development? How does it compare to GCJ? SableVM's runtime memory footprint can be pretty low, I guess. You can setup the initial heap size to 0 byte, and the increment to 1 byte, so that SableVM will tend to have as small a heap as possible (somewhat). Also, you can compile it with -Os, to optimize size. [Many of the m4 macros in place to add robustness can be easily modified to expand to even smaller code.] At runtime, the bytecode gets very little expansion (for preparation), compared to compiled code (gross figure; some times it's the other way around for specific bytecode sequences). SableVM is a "traditional" kind of JVM; it does no ahead of time compiling, not runtime compilation. It can result in smaller code. But, it will not compete in speed with highly optimized code, or adaptive optimization systems such as JikesRVM. Etienne -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Fabien R. <re...@ne...> - 2004-04-20 14:20:35
|
Hello, I´d like to know why there is a graphical difference between kaffe and sableVM when I run the Calc kaffe example ( with awt ) And why the application is so pretty with SableVM whereas it´s so awful with kaffe ( big red rectangle) Fabien Renaud |
From: David <db...@cs...> - 2004-04-20 19:17:24
|
On Tue, Apr 20, 2004 at 04:20:23PM +0200, Fabien Renaud wrote: > Hello, >=20 > I=B4d like to know why there is a graphical difference between kaffe an= d=20 > sableVM when I run the Calc kaffe example ( with awt ) And why the=20 > application is so pretty with SableVM whereas it=B4s so awful with kaff= e (=20 > big red rectangle) >=20 Hi, The prettiness is done by the GNU Classpath (CP) library. Both SableVM and Kaffe use CP but SableVM may possibly use a more recent version of CP. It actually depend on which version of Kaffe and SableVM you are using. If you are using SableVM 1.1.3 then it is using a snapshot of CP taken on Monday March 29 that is more recent than the latest CP release (0.08). Kaffe may be using an older version of CP (possibly 0.08), I don't know. In the long term, there will not be much=20 of a difference on the pretty side. It may happens that SableVM just have a set of recent changes that affect the appearence that Kaffe does not yet included. David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Dalibor T. <ro...@ka...> - 2004-04-21 09:42:34
|
Fabien Renaud <renaud <at> nentec.de> writes: > > Hello, > > I´d like to know why there is a graphical difference between kaffe and > sableVM when I run the Calc kaffe example ( with awt ) And why the > application is so pretty with SableVM whereas it´s so awful with kaffe ( > big red rectangle) Salut, Kaffe comes with its own, peerless AWT implementations for Xlib and Qt(2/3/embedded). SableVM comes with the slick, gtk based, peer-ish (whatever the proper adjective is), AWT implementation from GNU Classpath. cheers, dalibor topic |
From: Fabian R. <re...@ne...> - 2004-06-03 12:18:26
|
Hello, I want to run a little class written with awt. I run sablevm with -v option and have this : ... ... *[verbose class: loading "FirstAWT"]* [verbose class: loading "java/awt/Frame"] [verbose class: loading "java/lang/ClassNotFoundException"] [verbose class: loading "java/io/File"] [verbose class: loading "gnu/java/io/PlatformHelper"] [verbose class: loading "java/util/Locale"] [verbose class: loading "java/lang/Character"] [verbose class: loading "java/util/zip/ZipFile"] [verbose class: loading "java/util/zip/ZipConstants"] [verbose class: loading "java/net/URL"] [verbose class: loading "java/net/URLStreamHandler"] [verbose class: loading "gnu/java/net/protocol/file/Handler"] [verbose class: loading "sun/net/www/protocol/file/Handler"] [verbose class: loading "java/net/MalformedURLException"] [verbose class: loading "java/io/IOException"] [verbose class: creating "[Ljava/lang/StackTraceElement;"] [verbose class: loading "java/lang/Throwable$StaticData"] [verbose class: loading "java/lang/Integer"] [verbose class: loading "java/lang/Number"] *java.lang.ClassNotFoundException: FirstAWT* How is it possible to do not find the class whereas it´s loaded ? Other classes (without GUI) work. Where can come from the problem ? Cheers, Fabien |
From: Grzegorz B. P. <ga...@de...> - 2004-06-04 21:48:10
|
W liście z czw, 03-06-2004, godz. 08:18, Fabian Renaud pisze: > I want to run a little class written with awt. > I run sablevm with -v option and have this : Hi Fabian, Yes, I agree it's strange. Would you be able to show: 1. the complete code of your FirstAWT program 2. the full commandline you use to run it? I'd like to try it out and debug it deeper if the problem is reproducible. Thank you for letting us know of your problem, Grzegorz B. Prokopski -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |
From: Fabien R. <re...@ne...> - 2004-06-07 08:08:08
Attachments:
FirstAWT.java
|
Grzegorz B. Prokopski wrote: >W liście z czw, 03-06-2004, godz. 08:18, Fabien Renaud pisze: > > >>I want to run a little class written with awt. >>I run sablevm with -v option and have this : >> >> > >Hi Fabian, > >Yes, I agree it's strange. Would you be able to show: >1. the complete code of your FirstAWT program >2. the full commandline you use to run it? > >I'd like to try it out and debug it deeper if the problem is >reproducible. > >Thank you for letting us know of your problem, > > Grzegorz B. Prokopski > > > The program works fine on my x86. Actually, that should _not_ work on my arm (I don´t have X11) but I´d like to have another error message. I´ve attached the source of FirstAWT.java Cheers, Fabien |