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
1 answer

llvm jit compile to binary

Is it possible somehow to write a compiler producing LLVM IR code which user will JIT compile and after compiling it in memory it would be written to disk as binary file? The idea behind this scenario is that I dont want to compile LLVM IR code and…
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
1
vote
1 answer

Link (via url) to specific node in infovis (jit) treemap

Any infovis toolkit users out there? Would surely appreciate your help. I'm wondering if there's a way to link to a specific node via a standard href or some other method. Specifically, I'd like to retain the current node that the user is viewing…
Ben Wilson
  • 2,271
  • 3
  • 26
  • 35
1
vote
1 answer

Java: How to enable JIT?

I have a problem running a Java application through Eclipse. Upon clicking Run, a prompt shows: "Assertion failed! Program:../truetype.c Line: 2133 Expression: glyph != NULL (Please Retry to debug the application - JIT must be enabled)" * Upon…
iamtheexp01
  • 3,446
  • 9
  • 35
  • 35
1
vote
0 answers

How can I get source code lines displayed in the VS disassembly window for JIT-compiled code?

I'm programming a just-in-time x86-64 compiler for CIL bytecode. When my code generator emits bogus machine code, I'm forced to debug it in the disassembly window with no information about how the machine code maps to the source bytecode, making it…
Trillian
  • 6,207
  • 1
  • 26
  • 36
1
vote
1 answer

Could the .NET Jitter optimise away a While XmlReader.Read loop?

I asked a separate question (now deleted) for what I thought the actual problem was. Could the .NET Jitter not actually execute this loop: Private Shared Sub CheckXmlValidity(ByVal textReader As System.IO.StreamReader) Try ' Check for…
Mark Hurd
  • 10,665
  • 10
  • 68
  • 101
1
vote
1 answer

Just-in-time debugger with ViewFinity/no admin rights

My company uses ViewFinity to elevate processes that need admin rights in lieu of any kind of actual admin privileges. Visual studio is already elevated, but for some reason the JIT debugger doesn't run as admin. It is a separate .exe that kicks off…
Phillip Schmidt
  • 8,805
  • 3
  • 43
  • 67
1
vote
2 answers

JIT compiler - how to start write own compiler?

I want to write my own JIT compiler for CIL and I don't want use library to generate compiler. Do you have any tutorial, ebook or example?
1
vote
2 answers

How to detect an unmanaged app has aborted

I have a C# app which invokes an unmanaged C++ application via Process.Start() On some machines, if this C++ app aborts, I'm left with the Just-In-Time error dialog showing Is there a way from C# to detect that the C++ app has errored and just…
rc1
  • 341
  • 3
  • 7
  • 17
1
vote
0 answers

sample program does not execute always after making changes to dalvik jit

I have made some changes to dalvik jit by changing the jit table structure from chained array to a combination of hash table and B-tree. Now when i execute a sample java program which is public class prog { public static void main(String args[]) { …
1
vote
0 answers

start emulator based on newly built android source code

I have downloaded android source code and made some changes to dalvik/vm/interp/Jit.cpp. I have built the source code using $source build/envsetup.h $lunch full-eng $make -j4 The build was successful. Now…
1
vote
1 answer

Java JITC native code generation/execution example?

I'm trying to understand 'native code generation and execution' part of Java JITC, but having a hard time visualizing exactly what happens. E.g. say I have the following class: class Foo { private int x; public void incX() { …
shrini1000
  • 7,038
  • 12
  • 59
  • 99
1
vote
2 answers

MonoTouch: Using ServiceStack caused JIT error?

I am using the MonoTouch build of Service Stack from https://github.com/ServiceStack/ServiceStack/tree/master/release/latest/MonoTouch When run on a iPad, I get a JIT error. I thought MonoTouch took care of that in the build? Attempting to JIT…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
3 answers

PyPy and CPython: are big performance increases planned?

While I know projects promising large speed gains can result in let downs, I don't see much in the way of a roadmap for speeding up CPython and/or PyPy. Is there something planned that promises a huge boost in speed for the core interpreter (e.g.…
TryPyPy
  • 6,214
  • 5
  • 35
  • 63
0
votes
4 answers

Where is the Heap created by JIT (C#)

I always had this question that where (RAM / HARD DISK / some other (?) ) is the Heap located ? if i load a 2 GB file via code in memory then where will it go ? Also where is this "stack" located in physical place ? RAM ? Can someone from actual…
Dhananjay
  • 3,673
  • 2
  • 22
  • 20
0
votes
2 answers

Java System.nanoTime elapsed average time keeps getting smaller

This is not the first time I've had problems with clock times in a programming language. Basically I'm measuring how fast a function is running by calling it in a while loop. Problem is that for some reason the elapsed time keeps getting shorter the…
Thirlan
  • 712
  • 1
  • 8
  • 26