Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Oscar Montgomery   on Nov 28 In Java Category.

  
Question Answered By: Devlan Jones   on Nov 28

I think that your application will be encountered
performance problem, which is calculated by
miliseconds and at that time C,C++ (not Perl)
languages will be the number one for choice.

I also aggree with you there is some compilers, which
can directly compile code java  to machine code  but I
think it is not good for optimization. Because a C or
C++ program (include a lot of source files and
libraries) will be translated to machine code and
running by "machine instruction" directly, while a
java program is translated to machine code ( as some
compiler try to do like that), it must integrate your
source code and code that has duty as the JVM (such as
memomy management mechanism, exception handling and so
on). For this analyzation, we can think that a C or
C++ program has a performance higher than Java program
when it has the same design and structure.

Although, there is some companies try to make Java
compilers, which can directly compile Java to machine
code, I think it is only make satisfy require of
programmers because Java languages has been designed
and running in JVM (it is very complicate) and so it
is not good for translate from Java Source to machine
code and this translation is not also ideal of Java
language designer, it is only raised by software
companies from require and goal of programmers.

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Which Java IDE Compiles Native Code -.EXEs- ? Or get search suggestion and latest updates.


Tagged: