Link to home
Start Free TrialLog in
Avatar of srinivas_vemla
srinivas_vemla

asked on

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

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
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

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 
Avatar of srinivas_vemla
srinivas_vemla

ASKER

Why would I run Ngen? Is that the install-time JIT functionality?
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
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial