|
|
|
start date: Wed, 25 Jul 2007 06:26:01 -0700,
posted on: microsoft.public.dotnet.framework.clr
back
| Thread Index |
|
1
Artralarasu
|
|
2
Phill W. p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k
|
|
3
Artralarasu
|
|
4
Phill W. p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k
|
converting MSIL to Native code
while performing JIT compialtion, The MSIL code will be converted to native
code but how the native code will modify the assembly?
is that exe/dll size will be increased while converting the MSIl code to
native code?
could anyone clarify this.
Please ingore if i am admitted wrongly.
Date:Wed, 25 Jul 2007 06:26:01 -0700
Author:
|
Re: converting MSIL to Native code
Artralarasu wrote:
> while performing JIT compialtion, The MSIL code will be converted to native
> code but how the native code will modify the assembly?
Not at all.
> is that exe/dll size will be increased while converting the MSIl code to
> native code?
The assembly is /not/ overwritten.
The methods are loaded and linked to native code and then executed /in
memory/. Nothing is written back to disk, unless you use ngen, which
writes out a /separate/ file containing all the native code.
HTH,
Phill W.
Date:Wed, 25 Jul 2007 16:49:58 +0100
Author:
|
Re: converting MSIL to Native code
"Phill W." wrote:
> Artralarasu wrote:
>
> > while performing JIT compialtion, The MSIL code will be converted to native
> > code but how the native code will modify the assembly?
>
> Not at all.
>
> > is that exe/dll size will be increased while converting the MSIl code to
> > native code?
>
> The assembly is /not/ overwritten.
>
> The methods are loaded and linked to native code and then executed /in
> memory/. Nothing is written back to disk, unless you use ngen, which
> writes out a /separate/ file containing all the native code.
>
> HTH,
> Phill W.
>
Phill Thank you.
Is that mean JIT will perform validation and verification of MSIL.How the
JIT make sure that the particular method is already executed or not ?
because the the JIT compilation is performed only once for a particular
method and it wont be repeated.
Pls correct me if i am wrong.
Date:Wed, 25 Jul 2007 22:36:00 -0700
Author:
|
Re: converting MSIL to Native code
Artralarasu wrote:
> Is that mean JIT will perform validation and verification of MSIL.How the
> JIT make sure that the particular method is already executed or not ?
It's all part and parcel of the JIT loader. Assemblies are loaded and
linked method-by-method so, presumably, the framework keeps track of the
ones it's loaded so far.
And yes, the optimisation occurs only once; if conditions on the machine
change radically while the process is running, the method may have been
linked in a non-optimal way.
HTH,
Phill W.
Date:Thu, 26 Jul 2007 11:51:48 +0100
Author:
|
|
|