• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

21. Java > Static Compilers

Static Compilers

Java can be compiled into native code and linked to a garbage collection library. This is known as static compilation. Static compilation is against orthodox Sun religion because Sun is afraid that Java code will be compiled and optimized for Windows, but it’s simply a no-brainer for Java performance on the server side, where Java code does not need to be especially portable. You can always compile and optimize far better if you have a lot of time to do it than if you’re doing it on the fly with a JIT. And you should. There are two ways to compile Java to native: you can first translate Java to C and then compile the C with standard compilers, or you can compile Java directly to native machine code. Here are some static compilation tools:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint