From aserg2004 at list.ru Mon Mar 2 00:41:15 2009 From: aserg2004 at list.ru (Sergey Anosov) Date: Mon, 02 Mar 2009 11:41:15 +0300 Subject: =?koi8-r?Q?Re[2]=3A_gcc_3.3_and_java_on_mips?= In-Reply-To: <49A82A24.60004@redhat.com> References: <49A82A24.60004@redhat.com> Message-ID: > gcc 3.3 (May 2003) has a pretty old C++ compiler. I don't know that it will > even compile modern standard C++. In my opinion it's not worth trying. > > On the other hand, if you really want to use that old compiler, it's not > very hard to write the definitions in assembly language. > > Andrew. In 2008 I made build of java 1.4, 1.5, 1.6 and earliest version of Iced Tea with gcc 2.95=))) And it is working! Eclipse is running. From pradeepreddy.maram at nsn.com Thu Mar 5 06:38:38 2009 From: pradeepreddy.maram at nsn.com (Maram, Pradeepreddy (NSN - IN/Bangalore)) Date: Thu, 5 Mar 2009 22:38:38 +0800 Subject: Compilation on MIPS Message-ID: <02A131C25122CD4BAF39A1BAD0CB4AA5232720@SGSIEXC007.nsn-intra.net> Hello All, I have compiled the Ultraviolet port of OpenJDK for windriver Linux on Octeon (MIPS). Execution of any command fails as below, # ./java -version Error occurred during initialization of VM java/lang/ClassFormatError: Incompatible magic value 3199925962 in class file java/lang/Object My further investigations showed that the above magic number hexadecimal equal is "BEBAFECA", which is in reverse order of "CAFEBABE" (used by the class loader to see if a class file is really a class definition file or not). The system where I am running this binary supports "BIG ENDIAN" and I have see a comment in file jniTypes_mips.hpp as below, #ifndef VM_LITTLE_ENDIAN #error Unimplemented #endif (no support for BIG ENDIAN) Does it mean that, current MIPS port supports only "LITTLE ENDIAN" systems? Pradeep Reddy Maram Nokia Siemens Networks India Pvt. Ltd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/mips-port/attachments/20090305/e08bfc8d/attachment.html From springer at reservoir.com Thu Mar 5 07:17:43 2009 From: springer at reservoir.com (Jonathan Springer) Date: Thu, 05 Mar 2009 09:17:43 -0600 Subject: Compilation on MIPS In-Reply-To: <02A131C25122CD4BAF39A1BAD0CB4AA5232720@SGSIEXC007.nsn-intra.net> References: <02A131C25122CD4BAF39A1BAD0CB4AA5232720@SGSIEXC007.nsn-intra.net> Message-ID: <49AFED17.7030608@reservoir.com> Hi Maram, Maram, Pradeepreddy (NSN - IN/Bangalore) wrote: > Hello All, > > I have compiled the Ultraviolet port of OpenJDK for windriver Linux on > Octeon (MIPS). Sounds terrific! > Execution of any command fails as below, > > # ./java -version > Error occurred during initialization of VM > java/lang/ClassFormatError: Incompatible magic value 3199925962 in class > file java/lang/Object > > My further investigations showed that the above magic number hexadecimal > equal is "BEBAFECA", which is in reverse order of "CAFEBABE" (used by > the class loader to see if a class file is really a class definition > file or not). > > The system where I am running this binary supports "BIG ENDIAN" and I > have see a comment in file jniTypes_mips.hpp as below, > > #ifndef VM_LITTLE_ENDIAN > #error Unimplemented > #endif > (no support for BIG ENDIAN) > > Does it mean that, current MIPS port supports only "LITTLE ENDIAN" systems? That's correct. The Ultraviolet port was done for a little-endian implementation of MIPS. The places where this matters have been ifdef-ed in the code as above, so it should be a simple matter to add the right code to make it work in big-endian mode. -Jonathan -- Jonathan Springer | Reservoir Labs, Inc. | http://www.reservoir.com/