- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How is JIT compiler different from normal compiler?
Java uses javac (compiler) to convert the java code to byte code (.class file).
When we run this code using JVM, it internally converts the byte code to system understandable code using an interpreter.
Instead of executing a piece of code, again and again, JVM identifies them as “hot spots” and compiles them using Just in time compiler and, later reuses the same when required.
A compiler compiles (translates) the given program to executable code (whole code at a time).
A JIT compiler performs a similar task but it is used by JVM internally, to translate the hotspots in the byte code.
A compiler compiles (translates) the given program to executable code (whole code at a time).
A JIT compiler performs a similar task but it is used by JVM internally, to translate the hotspots in the byte code.
- Related Articles
- Is JIT compiler a part of JVM or run time interpreter?
- What is just-in-time or JIT compiler and what does it do?
- What is role of different data structures in compiler design?
- What is Compiler Design?
- What is Compiler Passes?
- What is Compiler Bootstrapping?
- What are the Different Phases of a Compiler?
- What is the difference between One-Pass Compiler and Multi-Pass Compiler?
- Is JVM a compiler or interpreter?
- What is Just-In-Time compiler?
- What is Chomsky Hierarchy in compiler design?
- What is error handling in compiler design?
- What is Input Buffering in Compiler Design?
- What is Finite Automata in Compiler Design?
- How to Install C++ Compiler on Windows?
