LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2005, 07:28 AM   #1
rpz
Member
 
Registered: Mar 2005
Posts: 126

Rep: Reputation: 15
Java (Sun, Eclipse, gcj, ...)


Can anyone be so helpful as to point me out some comparison between the different Java compilers out there. I am interrested in which one gives me the best performance, and memory is more important to me than computation speed.
I have always used sun's compiler as an old habit, but maybe it's worth checking out the alternatives? What are the benefits of using a particular compiler, and what about incompatibility issues (I'm sure there are...).
Any pointers are welcome.
 
Old 08-08-2005, 03:48 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
As I understand it, I haven't tested this much, gcj is decent but not there yet.

I remember the pains RedHat went through to get eclipse to compile with gcj. It's just beginning to be a valid alternative in the new experimental gcc 4 branch. On top of it all, eclipse runs slower using it compared to compiling with javac or jikes, which means it isn't quite as good.

jikes is faster than javac, tends to generate better error messages as well. It's mostly compatible flag-wise with javac, and supports the whole language as far as I know. It's kind of a drop-in replacement for javac. In my experience it's faster than javac by quite a bit. I haven't benchmarked to see if the code it generates if faster or slower, but regardless it isn't noticeably different. I don't know of any major differences in memory use.
 
Old 08-08-2005, 04:41 PM   #3
rpz
Member
 
Registered: Mar 2005
Posts: 126

Original Poster
Rep: Reputation: 15
OK, thanks for the info. Just to clarify, Jikes is the compiler that is used by Eclipse, right?
 
Old 08-08-2005, 09:02 PM   #4
oblivious69
Member
 
Registered: May 2005
Distribution: debian
Posts: 79

Rep: Reputation: 15
Quote:
Originally posted by rpz
OK, thanks for the info. Just to clarify, Jikes is the compiler that is used by Eclipse, right?
eclipse can use whatever jre you want. Take a look at the link:

http://www.eclipse.org/eclipse/faq/e...q.html#users_3
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse and gcj as JDK foucault Linux - Software 0 10-23-2005 11:56 AM
GCJ:Java is not anymore inerpeted? NCC-1701&NCC-1701-D Programming 4 07-02-2005 01:52 PM
Sun Java not GCJ untwisted Linux - Software 6 06-16-2005 04:18 PM
installed gcc with java language enabled.. but no gcj ! qwijibow Linux - Software 3 10-15-2004 03:24 PM
gcc, gcj, and java problems weppnesp Linux - Software 0 06-15-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration