Solved

Where are the pre-JITted assemblies stored and how long?

Posted on 2004-08-01
4
263 Views
Last Modified: 2008-01-09
Hello Friends,

I was reading that GAC stores the pre-JITted assemblies too, apart from the global assemblies. Is that true? Why are they stored in GAC if they are not global? How long are they stored here?

Also, if GAC stores ever the regular pre-JITted assemblies, why don't I see the assemblies that I create on my machine. I use the default JITter.

Thanks,
Srinivas
0
Comment
Question by:srinivas_vemla
  • 2
  • 2
4 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11689591
it happens when you run ngen.exe which creates a full native image of the managed assembly. There is a seperate part of the gac which is reserved to hold native images http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfnativeimagegeneratorngenexe.asp 
0
 

Author Comment

by:srinivas_vemla
ID: 11689800
Why would I run Ngen? Is that the install-time JIT functionality?
0
 

Author Comment

by:srinivas_vemla
ID: 11689813
Sorry, please ignore my last comment...

I just meant to ask, what these "Native images" are and how are they different from normal assemblies?

Also, say I have a HelloWorld.cs, and I compile it and create an assembly and then run it. The JIT has to cache it, right? Where is this cached?

Thanks,
Srinivas
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 100 total points
ID: 11689838
they are precompiled to native code ...

JIT is just in time compiling ... the assembly is compiled as needed (generally stored in memory)

with an ngen'ed image ... all of that compilation is all pre-done ... thus JIT is not performed.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get Client IP on RDS - VB.NET 15 47
Database Connections Not being returned to Connection Pool 7 27
Help with adding DLL file in Windows project 20 31
Powershell File Sort 8 31
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question