Re: [Sablevm-developer] Porting sablevm to powerpc
Brought to you by:
egagnon
From: Mark W. <ma...@kl...> - 2002-08-18 00:03:40
|
Hi, On Thu, 2002-08-15 at 23:46, Etienne M. Gagnon wrote: > On Thu, Aug 15, 2002 at 10:43:05PM +0200, Mark Wielaard wrote: > > Impressive! I am very interested in a VM that uses GNU Classpath and > > that I can use on powerpc (Debian GNU/Linux system). > > What 25 lines of code do I have to look at? > > You have to look at the following files: > > src/libsablevm/include/jni_system_specific.h > src/libsablevm/system.h > src/libsablevm/system.c OK, after spending a couple of hours learning powerpc assembly and the gcc asm constraints I think that I have something that might be what is needed for powerpc. Unfortunately it doesn't work correctly yet, but looking at the output of --verbose I get the impression that we are almost there. Here are the last 15 lines for sablevm --verbose Hello: [verbose class: creating "[Ljava/util/Hashtable$HashEntry;"] [verbose class: loading "java/util/StringTokenizer"] [verbose class: loading "java/util/Enumeration"] [verbose class: creating "[Ljava/lang/String;"] [verbose class: loading "java/lang/StringBuffer"] [verbose class: loading "java/lang/VMSecurityManager"] [verbose class: loading "java/util/WeakHashMap$WeakBucket$WeakEntry"] [verbose class: loading "java/io/BufferedInputStream"] [verbose class: loading "java/io/FilterInputStream"] [verbose class: loading "java/io/InputStream"] [verbose class: loading "java/io/FileInputStream"] [verbose class: loading "java/io/FileDescriptor"] [verbose class: loading "java/lang/SecurityException"] java/lang/ExceptionInInitializerError [verbose gc: total gc time = 0 sec 0 usec] Attached are my versions of the above files. If there is someone with some powerpc knowledge on the list then I would highly appreciate it if you could take a look. Have to get some sleep now. Cheers, Mark |