JIT Compiler

  • Thread starter Thread starter Shishir Kumar Mishra
  • Start date Start date
S

Shishir Kumar Mishra

How JIT Compilers are different from Normal compilers? I am talking
about JIT Compiler as general not .NET or Java JIT compiler .

Any link or Docs?
:-(

Thanks and Regards..

Shishir Kumar Mishra
Agni Software (P) Ltd.
www.agnisoft.com
 
A JIT compiler, in general, compiles code as its used, instead of compiling
it before use or interpreting source. Hence the term Just In Time.
In the .NET and java compilers, atleast(although I don't know for sure if
the term requires this or not), JITing is the compilation of a bytecode
language into native code as the code is needed(at method granularity
usually). I suppose the term could be expanded to source code to machine
code at runtime, although I don't know of any systems that use such a
technique.
 
How does this granularity differ for propertys ?

Does it just just the get_ when thats called or would it JIT the set_ AND
get_ for that first prop access regardless of read or write?
 
How does this granularity differ for propertys ?

Does it just just the get_ when thats called or would it JIT the set_ AND
get_ for that first prop access regardless of read or write?
I don't know, honestly. Generically get_ & set_ *are* seperate methods and
the JITer probably treats them like any other method, but I don't know for
sure.
 
What about INLINING, since the IL size of greater than 32 I belive doesnt
get inlined, say I have 4 methods all small enuf to be inlined but called in
a nested heirachy like A->calls B->calls C->calls D and so on, when these
methods are all JITted, they all add up to greater than the inline size of
32. Does that mean A is NOT inlined becuase of all the inlined calls make
it too large?
 
Back
Top