JDT/other compilers [message #242007] |
Wed, 28 March 2007 14:44  |
Eclipse User |
|
|
|
Do I understand correctly that JDT has its own compiler that gets used to
generate byte codes when I build Java files in Eclipse? If so, is there
any way to change the default build compiler in use by the IDE? I can't
seem to find anything in the preferences.
Thanks,
Cameron
|
|
|
|
|
|
|
Re: JDT/other compilers [message #242055 is a reply to message #242051] |
Thu, 29 March 2007 09:23   |
Eclipse User |
|
|
|
Originally posted by: first.last.oracle.com
Agreed. Over the years I have encountered 2 noticeable differences
between javac and the JDT compiler. One was a bug in javac, the other
a bug in the JDT compiler. So there you go, either can have problems. :-)
Brian
Eric Rizzo wrote:
> Ed Merks wrote:
>> Cameron,
>>
>> I see. I don't think such concerns are justified. Since I'm not a
>> JDT developer I can't give you concrete reassurance as to what tests
>> are all run to ensure conformance, but I've never heard of a problem
>> where JDT generated bad byte code. You could always build with Javac
>> before you send things to your customer..
>
> +1 - There is no evidence that Sun's javac is any more or less reliable
> than the other compliant compilers out there. The point of having a JLS
> and a JVM spec is so that alternate compiler implementations can be
> developed for specific purposes. There are numerous such compilers. IMO,
> someone who is trying to argue that only Sun's compiler is legitimate
> only knows enough about the subject to be dangerous, not enough to speak
> with authority.
> In any case, I also agree with the above that it is best to have a
> tool-independent build mechanism for doing production builds. Ant or
> Maven is usually the tool of choice. It is not generally a good idea to
> rely on an IDE to produce your production builds, especially since they
> should be totally automated.
>
> Hope this helps,
> Eric
|
|
|
Re: JDT/other compilers -- optimization ??? [message #242129 is a reply to message #242055] |
Sat, 31 March 2007 14:01   |
Eclipse User |
|
|
|
Originally posted by: kwarner.uneedspeed.net
As long as we are talking Java compilers....
javac no longer supports the -O flag that signals optimization.
What does the JDT compiler do with regard to optimization? Are
there different levels of optimization? There is no explicit
way to tell the JDT to optimize that I am aware of. Although
there is a way to tell it to not produce various debugging information
and that does help shrink the class files a bit.
So what does the JDT compiler do with regard to optimization????
Brian Vosburgh wrote:
> Agreed. Over the years I have encountered 2 noticeable differences
> between javac and the JDT compiler. One was a bug in javac, the other
> a bug in the JDT compiler. So there you go, either can have problems. :-)
>
> Brian
>
> Eric Rizzo wrote:
>
>> Ed Merks wrote:
>>
>>> Cameron,
>>>
>>> I see. I don't think such concerns are justified. Since I'm not a
>>> JDT developer I can't give you concrete reassurance as to what tests
>>> are all run to ensure conformance, but I've never heard of a problem
>>> where JDT generated bad byte code. You could always build with Javac
>>> before you send things to your customer..
>>
>>
>> +1 - There is no evidence that Sun's javac is any more or less
>> reliable than the other compliant compilers out there. The point of
>> having a JLS and a JVM spec is so that alternate compiler
>> implementations can be developed for specific purposes. There are
>> numerous such compilers. IMO, someone who is trying to argue that only
>> Sun's compiler is legitimate only knows enough about the subject to be
>> dangerous, not enough to speak with authority.
>> In any case, I also agree with the above that it is best to have a
>> tool-independent build mechanism for doing production builds. Ant or
>> Maven is usually the tool of choice. It is not generally a good idea
>> to rely on an IDE to produce your production builds, especially since
>> they should be totally automated.
>>
>> Hope this helps,
>> Eric
|
|
|
|
|
|
|
|
|
|
|
|
Re: JDT/other compilers [message #250824 is a reply to message #242012] |
Tue, 22 January 2008 20:10  |
Eclipse User |
|
|
|
Originally posted by: rob.brainkandy-dot-org.org
Reviving a thread from long ago:
While the Eclipse JDT compiler has to be used for incremental compilation by the
IDE, do you lose something if another compiler is used to generate the workspace
..class files? Performance? Hot-swap debugging? Is this even possible?
Thanks, Robert
Ed Merks wrote:
> Cameron,
>
> Yes, that's true, and no, the JDT compiler is the only incremental
> compiler that the IDE can use directly. You could always use Ant tasks
> to invoke javac, but I wonder why you would want to do that in the IDE
> itself...
>
>
> Cameron Bateman wrote:
>
>> Do I understand correctly that JDT has its own compiler that gets used
>> to generate byte codes when I build Java files in Eclipse? If so, is
>> there any way to change the default build compiler in use by the IDE?
>> I can't seem to find anything in the preferences.
>>
>>
>> Thanks,
>>
>> Cameron
>>
|
|
|
Powered by
FUDForum. Page generated in 0.10273 seconds