1 |
Bruno Dufour said: |
2 |
> On Wed, Mar 17, 2004 at 05:42:17PM -0800, Robin H. Johnson wrote: |
3 |
>> On Wed, Mar 17, 2004 at 07:27:41PM -0600, Joseph Booker wrote: |
4 |
>> > Im wondering if java programs in portage really require to be |
5 |
>> compiled, I |
6 |
>> > dont no of any that i use (mainly just the jdk and jedit) that has USE |
7 |
>> > flags or anything like that that changes the files compiled, so whats |
8 |
>> the |
9 |
>> > point of having them compiled when the binary versions would be just |
10 |
>> the |
11 |
>> > same on any arch? |
12 |
>> In theory the output SHOULD be the same, but in practice this is not |
13 |
>> always true, esp. when you tell javac to compile with optimizations or |
14 |
>> debugging. Also, you have to contend with the non-standard javac options |
15 |
>> (try javac -X with various different javac, esp. across multiple |
16 |
>> platforms). |
17 |
> |
18 |
> Well, AFAIK, javac always uses optimization. The -O option is still |
19 |
> there for compatibility reasons, but it does not do anything. This has |
20 |
> been the case for quite a while. I agree with your point though. There |
21 |
> are many features that can be tweaked when using a java compiler (the |
22 |
> jikes compiler is even more configurable than javac). Some compilers |
23 |
> (like javac from Sun's J2DK) are not even available on all platforms. |
24 |
> Even if you don't want to tweak the output, different compilers generate |
25 |
> different class files, and have different optimization strategies. Some |
26 |
> picky tools/jvms also have incompatibilities with the classes that are |
27 |
> generated from certain compilers. |
28 |
> |
29 |
> Compiling from source therefore gives you quite a lot of freedom. |
30 |
> |
31 |
|
32 |
hmmm.....mayb there should be an option then concerning what options to |
33 |
pass to the compiler? (JFLAGS or osmething) |
34 |
|
35 |
-- |
36 |
Joe Booker |
37 |
|
38 |
-- |
39 |
gentoo-dev@g.o mailing list |