Java native code compilation



Hi all

I was just reading some stuff on a Java forum about compilation to
native code. The question was how to compile Java source code to
native code (eg Windows .exe file). The thread turned into a beating
of chests about why you should/should not consider doing this, and
never really answered the question straight. So my first question is:

1) Can it be done (for the Windows platform)? If so, how and with what
tools. I don't care what your opinion is on the matter. That is the
focus of my second question

2) What are the merits of doing this. Many of the posters on the
forum stated that JIT/dynamic compilation is more efficient and faster
than static compilation such as that used in C++. Yet it is definitely
noticable that java GUI apps are slower and less responsive than native
code GUI apps. Why is this?

thanks
MQ

.



Relevant Pages

  • Re: [SLE] Clearing up the FUD on CLI/Mono
    ... Static compilation to native code as gcj does it ... native code compilation has optimization ... For all practial purposes and for a sizeable majority of programs, Java ...
    (SuSE)
  • compilation for portability
    ... Instead of using interpretation for portability like Java, ... Why not make something like the JRE that simply ... everything into native code before running? ...
    (comp.programming)
  • Re: huge array
    ... It alwasy has been run as native code. ... |> transformed from plain VB code or from any other language, ... parsing and execution are two separate steps. ... | stage of compilation - which is the generation of IL (a binary, ...
    (microsoft.public.vb.general.discussion)
  • Re: huge array
    ... or do you know a CPU which can handle something like "FOR I = 1 TO ... There is a huge difference between interpeted code and native code. ... parsing and execution are two separate steps. ... compilation happens in two phases ...
    (microsoft.public.vb.general.discussion)
  • Re: huge array
    ... Of course is always any code executing on a CPU a native code which has been ... There is a huge difference between interpeted code and native code. ... parsing and execution are two separate steps. ... stage of compilation - which is the generation of IL (a binary, ...
    (microsoft.public.vb.general.discussion)

Loading