Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24896

Re: Java compilers

Date 2013-08-03 20:05 +0100
From lipska the kat <"nospam at neversurrender dot co dot uk">
Organization Trollbusters 3
Newsgroups comp.lang.java.programmer
Subject Re: Java compilers
References <adfa1b2f-ad3b-4061-9fc0-ae166908a02b@googlegroups.com>
Message-ID <fLudnc14Y50eyWDMnZ2dnUVZ7oCdnZ2d@bt.com> (permalink)

Show all headers | View raw


On 03/08/13 18:29, Olurotimi Ajayi-Dopemu wrote:
> Are there Java compilers that allow the compiled code to be run from an existing operating system. IE compile source on linux run only on linux after compilation. This is mostly a speed question but if anyone can add pros or cons of this that would be great. Thanks a bunch.
>

Well there's gcj (Gnu Compiler for Java)

For a class Test.java on my Linux box

$ gcj --main=Test -o Test Test.java

gives me a 64 bit ELF binary executable

and

$ Test

executes the code, no interpreter required.

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Java compilers Olurotimi Ajayi-Dopemu <rodopemu@gmail.com> - 2013-08-03 10:29 -0700
  Re: Java compilers Arne Vajhøj <arne@vajhoej.dk> - 2013-08-03 13:37 -0400
  Re: Java compilers Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-08-03 20:01 +0200
  Re: Java compilers lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-08-03 20:05 +0100

csiph-web