Questions tagged [jit]

Just-In-Time compilation (JIT) is a technique used to improve the performance of interpreted code by translating it to machine code.

Introduction

From Wikipedia:

In computing, just-in-time compilation (JIT), also known as dynamic translation, is a method to improve the runtime performance of computer programs based on bytecode.

JIT compilers represent a hybrid approach, with translation occurring continuously, as with interpreters, but with caching of translated code to minimize performance degradation. They also offer handling of late-bound data types and the ability to enforce security guarantees.

In a bytecode-compiled system, source code is translated to an intermediate representation known as bytecode. The JIT compiler reads the bytecode and compiles it dynamically into machine language so the program can run faster.

Tag usage

Use the tag for questions about JIT compilers. Be sure to include other relevant tags as well. For example, if your JIT question is Java-specific, include the tag.

Further reading

1936 questions
1
vote
3 answers

Are unused methods optimized out in RELEASE code?

Possible Duplicate: C# Compiler optimization - Unused methods A JIT compiler runs after the program has started and compiles the code (usually bytecode or some kind of VM instructions) on the fly (or just-in-time, as it's called) into a form…
user1968030
1
vote
0 answers

Missing symbols __Unwind_resume and __assert_fail when trying to run jited code in llvm

We are trying to adapt the clang-llvm interpreter code here to run some c++ code that uses stl vector and c++ string among other things. This resulted in a number of unresolved symbols, and after eliminating a bunch of them, we are still stuck with…
Amit Prakash
  • 1,171
  • 10
  • 19
1
vote
2 answers

Compiling code directly into MSIL

Is there a way to complie code directly into Native Code instead of MSIL so that we can bypass JIT while executing the code on machine. If its possible. Please let me know the technique also. Thanks
Raj Kumar
  • 6,970
  • 5
  • 30
  • 40
1
vote
1 answer

Why is pre-compiling my ASP .NET MVC project not improving my first time access speed?

I have tried two things. One is pre-compiling my ASP.NET MVC 3 project using aspnet_compiler, and the other is using RazorGenerator in the project to allow the views to be compiled. Using both methods, I still see that pages in my site are having to…
1
vote
0 answers

Visual Studio 2010 Just-in-time debugger

I have an ASP.Net web application that uses a Process to execute a command line tool. The parameters to the command line tool are provided as input by the user. If there is something wrong with the parameters, then the command line tool crashes.…
ankit0311
  • 735
  • 3
  • 10
  • 20
1
vote
1 answer

Poor LLVM JIT performance

I have a legacy C++ application that constructs a tree of C++ objects. I want to use LLVM to call class constructors to create said tree. The generated LLVM code is fairly straight-forward and looks like repeated sequences of: ; ... %11 =…
Paul J. Lucas
  • 6,895
  • 6
  • 44
  • 88
1
vote
1 answer

can bytecode be run without a virtual machine

can bytecode be run without a virtual machine? Could an micro kernel operating system for example have a Execution server that can JIT(convert bytecode into native code and run) it without the need of a full virtual machine environment. or would…
zeitue
  • 1,674
  • 2
  • 20
  • 45
1
vote
1 answer

How to see native code bytes from .NETCF JIT compiler on

Can anyone suggest a way (supported or unsupported) of getting a look at native code bytes compiled by the NETCF JIT compiler. I happen to be on WinCE6.0 on an ARM platform. I'm guessing that this can be done with a native debugger, but I'm trying…
Wil S
  • 345
  • 2
  • 12
1
vote
2 answers

Embedding Mono - Overhead of a native -> managed context switch

Anyone got any details on the overhead of a native -> managed context switch in Mono? Namely the overhead caused by calling .NET methods/creating .NET objects using the C API.
jameszhao00
  • 7,213
  • 15
  • 62
  • 112
1
vote
0 answers

Why would the JIT run in the middle of program when no new code is being run?

I'm running some performance tests on some webservers that host .Net 4.0 code. I've noticed that the % in JIT counter will spike seemingly randomly in the process of the tests. These test are fairly simple, and they all run through the same code.…
Zipper
  • 7,034
  • 8
  • 49
  • 66
1
vote
2 answers

fast on-demand c++ compilation

I'm looking at the possibility of building a system where when a query hits the server, we turn the query into c++ code, compile it as shared object and the run the code. The time for compilation itself needs to be small for it to be worthwhile. My…
Amit Prakash
  • 1,171
  • 10
  • 19
1
vote
3 answers

Can JIT be prevented from optimising away method calls?

We are building a tool for average case runtime analysis of Java Byte Code programs. One part of this is measuring real runtimes. So we would take an arbitrary, user provided method that may or may not have a result and may or may not have side…
Raphael
  • 9,779
  • 5
  • 63
  • 94
1
vote
1 answer

Inlining a function in LLVM jit

I'm new to LLVM framework and compilers field. I'm trying to get acquainted with it. Having done some preliminary reading in compilers i have the following question: I would like to know how is function inlining done in LLVM JIT. Is it the same pass…
algo_freek
  • 69
  • 1
  • 8
1
vote
2 answers

Dynamically Loading Page Class/Assembly: Type or name could not be found in the global namespace

I am trying to create an ASP.Net Web application that stores it's "content" (ASPX/ASCX and assemblies) somewhere other than the file system (Inside a service, for example) and loads them in dynamically as required. I have successfully created a…
Gavin Osborn
  • 2,593
  • 3
  • 27
  • 42
1
vote
2 answers

Are there any IoC frameworks that do not use JIT compilation that support interception?

It seems that Mono on iOS does not support JIT compilation, which seems to be used by at least StructureMap, Ninject, and Simple Injector. It can be turned off with reflection replacing it in Ninject but that doesn't seem to be the case with its…
fordeka
  • 979
  • 2
  • 7
  • 22