public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Emerging java with gcj
@ 2007-10-11 11:59 Florian Philipp
  2007-10-14 20:46 ` Randy Barlow
  2007-10-14 21:38 ` Hans-Werner Hilse
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Philipp @ 2007-10-11 11:59 UTC (permalink / raw
  To: gentoo-user

Hi!

I've noticed that the gcj use flag is not enabled by default and 
therefore all java code is compiled to byte code instead of native 
binaries, am I correct?

I wonder how I can change that. Just re-emerge gcc with USE="gcj" and 
all packages containing java code? Is it even a good idea?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Emerging java with gcj
  2007-10-11 11:59 [gentoo-user] Emerging java with gcj Florian Philipp
@ 2007-10-14 20:46 ` Randy Barlow
  2007-10-14 20:55   ` Kevin O'Gorman
  2007-10-14 21:38 ` Hans-Werner Hilse
  1 sibling, 1 reply; 4+ messages in thread
From: Randy Barlow @ 2007-10-14 20:46 UTC (permalink / raw
  To: gentoo-user

Florian Philipp wrote:
> I've noticed that the gcj use flag is not enabled by default and
> therefore all java code is compiled to byte code instead of native
> binaries, am I correct?

gcj can compile java code directly to machine code, and I'm pretty sure
that the Sun compiler just compiles to byte code.  I have no experience
with gcj though, so I can't answer your second question...

> I wonder how I can change that. Just re-emerge gcc with USE="gcj" and
> all packages containing java code? Is it even a good idea?


-- 
Randy Barlow
http://electronsweatshop.com
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Emerging java with gcj
  2007-10-14 20:46 ` Randy Barlow
@ 2007-10-14 20:55   ` Kevin O'Gorman
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin O'Gorman @ 2007-10-14 20:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

On 10/14/07, Randy Barlow <randy@electronsweatshop.com> wrote:
>
> Florian Philipp wrote:
> > I've noticed that the gcj use flag is not enabled by default and
> > therefore all java code is compiled to byte code instead of native
> > binaries, am I correct?
>
> gcj can compile java code directly to machine code, and I'm pretty sure
> that the Sun compiler just compiles to byte code.  I have no experience
> with gcj though, so I can't answer your second question...
>
> > I wonder how I can change that. Just re-emerge gcc with USE="gcj" and
> > all packages containing java code? Is it even a good idea?


Probably not, but you could always try it and report back to the list... :o)

Nothing that needs to work with a class loader, like applets do, will work.
I would expect some problems with introspection.  Moreover, last I tried it,
there were buckets of incompatibility with the Java libraries.  Maybe it's
more mature now.

Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 1345 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Emerging java with gcj
  2007-10-11 11:59 [gentoo-user] Emerging java with gcj Florian Philipp
  2007-10-14 20:46 ` Randy Barlow
@ 2007-10-14 21:38 ` Hans-Werner Hilse
  1 sibling, 0 replies; 4+ messages in thread
From: Hans-Werner Hilse @ 2007-10-14 21:38 UTC (permalink / raw
  To: gentoo-user

Hi,

On Thu, 11 Oct 2007 13:59:23 +0200
Florian Philipp <f.philipp@addcom.de> wrote:

> I've noticed that the gcj use flag is not enabled by default and 
> therefore all java code is compiled to byte code instead of native 
> binaries, am I correct?

I think the gcj flag toggles if java support is added at all.
gcj itself can compile to bytecode (class files) or native binary code.
In order to generate java bytecode, the flag "-C" has to be specified.

> I wonder how I can change that. Just re-emerge gcc with USE="gcj" and 
> all packages containing java code? Is it even a good idea?

It will take a lot more time when emerging gcc. Whether you need it
depends on what you are planning to do with it... If you just need a
full blown JDK, the gcj might not be exactly what you want.

Gcj also brings the gij interpreter, which can be used to run java
bytecode.

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-14 21:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-11 11:59 [gentoo-user] Emerging java with gcj Florian Philipp
2007-10-14 20:46 ` Randy Barlow
2007-10-14 20:55   ` Kevin O'Gorman
2007-10-14 21:38 ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox