1 |
On Wed, Mar 17, 2004 at 05:42:17PM -0800, Robin H. Johnson wrote: |
2 |
> On Wed, Mar 17, 2004 at 07:27:41PM -0600, Joseph Booker wrote: |
3 |
> > Im wondering if java programs in portage really require to be compiled, I |
4 |
> > dont no of any that i use (mainly just the jdk and jedit) that has USE |
5 |
> > flags or anything like that that changes the files compiled, so whats the |
6 |
> > point of having them compiled when the binary versions would be just the |
7 |
> > same on any arch? |
8 |
> In theory the output SHOULD be the same, but in practice this is not |
9 |
> always true, esp. when you tell javac to compile with optimizations or |
10 |
> debugging. Also, you have to contend with the non-standard javac options |
11 |
> (try javac -X with various different javac, esp. across multiple |
12 |
> platforms). |
13 |
|
14 |
Well, AFAIK, javac always uses optimization. The -O option is still |
15 |
there for compatibility reasons, but it does not do anything. This has |
16 |
been the case for quite a while. I agree with your point though. There |
17 |
are many features that can be tweaked when using a java compiler (the |
18 |
jikes compiler is even more configurable than javac). Some compilers |
19 |
(like javac from Sun's J2DK) are not even available on all platforms. |
20 |
Even if you don't want to tweak the output, different compilers generate |
21 |
different class files, and have different optimization strategies. Some |
22 |
picky tools/jvms also have incompatibilities with the classes that are |
23 |
generated from certain compilers. |
24 |
|
25 |
Compiling from source therefore gives you quite a lot of freedom. |
26 |
|
27 |
-- |
28 |
Bruno Dufour |
29 |
Sable Research Group |
30 |
McGill University, Montréal, Canada |
31 |
http://www.sable.mcgill.ca/~bdufou1/ |
32 |
|
33 |
> |
34 |
> -- |
35 |
> Robin Hugh Johnson |
36 |
> E-Mail : robbat2@××××××××××××××.net |
37 |
> Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 |
38 |
> ICQ# : 30269588 or 41961639 |
39 |
> GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |
40 |
|
41 |
|
42 |
|
43 |
-- |
44 |
gentoo-dev@g.o mailing list |