jit

64bit .NET Performance tuning

I know that .NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using Int64 improve performance and will the JIT com...

Virtual Machine Optimization

I am messing around with a toy interpreter in Java and I was considering trying to write a simple compiler that can generate bytecode for the Java Virtual Machine. Which got me thinking, how much optimization needs to be done by compilers that target virtual machines such as JVM and CLI? Do Just In Time (JIT) compilers do constant foldi...

What does a just-in-time (JIT) compiler do?

What does a JIT compiler specifically do as opposed to a non-JIT compiler? Can someone give a succinct and easy to understand description? ...

Is there any way to change the .NET JIT compiler to favor performance over compile time?

I was wondering if there's any way to change the behavior of the .NET JIT compiler, by specifying a preference for more in-depth optimizations. Failing that, it would be nice if it could do some kind of profile-guided optimization, if it doesn't already. ...

What exactly is Parrot?

I understand that Parrot is a virtual machine, but I feel like I'm not completely grasping the idea behind it. As I understand, it's a virtual machine that's being made to handle multiple languages. Is this correct? What are the advantages of using a virtual machine instead of just an interpreter? What specifically is Parrot doin...

Is there any way to trick the .net JIT compiler into running another method?

Ok, say that my application is emitting (x86) instructions into memory, making the page executable, etc. Is there any way of altering the method stub of an un-JITted method to point to my emitted instruction stream? E.g.: Suppose I have created an x86 instruction stream in memory, which does something arbitrary. Now, further suppose th...

JIT ramp up time for .NET web services

How do I overcome JIT compilation ramp-up time for infrequently used web service methods in my .NET enterprise solution? Some of my infrequently used business processes rely upon 5-6 web internal web service calls. Each "JIT" can add 2-3 seconds per call adding roughly 10-15 seconds to a process. ...

Script Debugging Not Working (VS 2008)

I recently installed VS 6.0 after installing VS 2008 and overwrite JIT settings .. when i started VS 2008 option dialog .. it said another debugger has taken over VS 2008 debugger and I asked me to reset .. so I did .. Now everything works fine except javascript debugging. I am unable to debug javascript .. I can set breakpoint .. but i...

Switching off the .net JIT compiler optimisations

Hi there. I have a curly one here. When we remote a method (that is using generics) the remoting sink cannot seem to discover our method from the other identical named ones. Debugging with .net source code attached I've got it to where there is a MethodInfo. MakeGenericMethod call. However I cannot look at any of the surrounding data as...

What Conditions Cause a Web Application to Be Just In Time Compiled?

I'm curious as to the exact conditions that cause an application to be Just In-Time Compiled? I think we all know the first visit to a non pre-compiled site will cause a JIT. What about throwing new code into the App_Code directory? I'm pretty sure some actions like saving the web.config simply cause the cause the Application Pool to ...

Execution speed of references vs pointers

I recently read a discussion regarding whether managed languages are slower (or faster) than native languages (specifically C# vs C++). One person that contributed to the discussion said that the JIT compilers of managed languages would be able to make optimizations regarding references that simply isn't possible in languages that use po...

Does it help to use NGEN ?

Is it better to use NGEN an ASP.NET application when we know it is not going to change much ? Or is the JIT good enough ? Thanks, Chak. ...

Is the IsNullOrEmpty bug fixed in .NET 3.0 or later?

Does anyone know if the IsNullOrEmpty bug is fixed in 3.0 or later? I currently came across the (NullReferenceException) bug in 2.0 and I have found documentation stating that is supposed to be fixed in the next release, but no definitive answer. ...

Can I avoid JIT in .net

Say if my code is always going to be run on a particular processor and if I have this information during installation - is there any chance I can avoid JIT? ...

Should cs files be deployed when publishing an ASP.Net MVC application?

I have a project that compiles and runs fine on my development machine but when I run it on the web server I get the following error. Parser Error Message: The file '/Views/Shared/Main.master.cs' does not exist. The file mentioned does not exist on the server but the file '/Views/Shared/Main.master' does. I use the 'Publish' comma...

Why do .NET developers offer 32-bit/64-bit versions of .NET assemblies?

Evey now and then I see both x86 and x64 versions of a .NET assembly. Consider the following web part for SharePoint. Why wouldn't the developer just offer a single version and have let the JIT compiler sort out the rest? When I see these kinds offering is it just that the developer decided to create a native image using a tool like ngen...

Compact Framework and JIT. How long could it take

We have/had a phantom delay in our app. This was traced to the initialisation of a singleton when the object was touched for the first time and was blamed on JIT. I'm not utterly convinced by this as there is no mechanism for measuring JIT (or is there?) and the entire delay was seven seconds. Seven seconds of JIT?!? Could that be forrea...

How would you re-use C opcode implementations when writing a JIT with LLVM ?

In the llvm tutorials and examples, the compiler outputs LLVM IR by making calls like this return Builder.CreateAdd(L, R, "addtmp"); but many interpreters are written like this: switch (opcode) { case ADD: result = L + R; break; ... How would you extract each of these code snippets to make a JIT ...

How to prevent Just-In-Time Debugger showing when script error occurs in WebBrowser control

I use a WebBrowser control in my Winforms application. When I navigate to a Url that causes a JavaScript exception the Just-In-Time (JIT) debugger window shows up asking if you want to debug this exception: An Unhandled exception ('Object expected') occured in (application) This happens (in Release mode) even though I set the Scr...

Java and .NET heap overhead

I have understanding how heap and garbage collector works: garbage collection happens in generations, memory allocation happens sequentially, during garbage collection free/unused space compacted by shifting data and forming continues block, etc. Is there any headers for allocated memory chunks are present and how big are they (I heard...