473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

ASP.NET Dynamic Compilation

I am studying ASP.NET and have a simple question reading the first lines in
this page:

http://msdn.microsoft.com/en-us/libr...23(VS.80).aspx

Are they talking about compilation of C# code to IL code or about
compilation of IL code to machine dependant instruction code?

I've got some trouble with the used terms, I think both (C# -IL and
IL ->machine code) is called compilation?

Marc Wentink

Jun 27 '08 #1
8 1605
Hi Marc,

yes , you code in any language be in VB.NET or C#.net is compiled into
machine independent language MSIL using the language compilers and the
compiled into machine specific code using the JIT compiler at run time.

Regards,
Manish
www.ComponentOne.com
"Marc" wrote:
I am studying ASP.NET and have a simple question reading the first lines in
this page:

http://msdn.microsoft.com/en-us/libr...23(VS.80).aspx

Are they talking about compilation of C# code to IL code or about
compilation of IL code to machine dependant instruction code?

I've got some trouble with the used terms, I think both (C# -IL and
IL ->machine code) is called compilation?

Marc Wentink

Jun 27 '08 #2

"Manish" <Ma****@discussions.microsoft.comwrote
yes , you code in any language be in VB.NET or C#.net is compiled into
machine independent language MSIL using the language compilers and the
compiled into machine specific code using the JIT compiler at run time.
Thanks for your effort Manish, but that unfortunately was not really my
question. I might be unclear what is exactly my question. Let me try again:

Does Dynamic Compilation refer to compiling source code to intermediate
language or does it refer to compiling intermediate language to machine
dependant instructions?
Jun 27 '08 #3
Hi Marc

Actually dynamic compilation in this case refers to both compilation
together.
Basically what this means is that you can have .cs (or. vb) files in your
source site.

When you make a request, ASP.NET will compile the .cs first into IL and then
into machine language to emit the required HTML for the client browser.
The conversion from IL to machine is implicit.

--
MAdhur

"Marc" <m,we******************@nki.nlwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
>
"Manish" <Ma****@discussions.microsoft.comwrote
>yes , you code in any language be in VB.NET or C#.net is compiled into
machine independent language MSIL using the language compilers and the
compiled into machine specific code using the JIT compiler at run time.

Thanks for your effort Manish, but that unfortunately was not really my
question. I might be unclear what is exactly my question. Let me try
again:

Does Dynamic Compilation refer to compiling source code to intermediate
language or does it refer to compiling intermediate language to machine
dependant instructions?
Jun 27 '08 #4
re:
!you can have .cs (or. vb) files in your source site

Or both .cs *and* .vb , with a simple configuration in your web.config
plus the creation of a couple of subdirectories under App_Code.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Madhur" <sd*@df.comwrote in message news:BF**********************************@microsof t.com...
Hi Marc

Actually dynamic compilation in this case refers to both compilation together.
Basically what this means is that you can have .cs (or. vb) files in your source site.

When you make a request, ASP.NET will compile the .cs first into IL and then into machine language to emit the
required HTML for the client browser.
The conversion from IL to machine is implicit.

--
MAdhur

"Marc" <m,we******************@nki.nlwrote in message news:eT**************@TK2MSFTNGP03.phx.gbl...
>>
"Manish" <Ma****@discussions.microsoft.comwrote
>>yes , you code in any language be in VB.NET or C#.net is compiled into
machine independent language MSIL using the language compilers and the
compiled into machine specific code using the JIT compiler at run time.

Thanks for your effort Manish, but that unfortunately was not really my question. I might be unclear what is exactly
my question. Let me try again:

Does Dynamic Compilation refer to compiling source code to intermediate language or does it refer to compiling
intermediate language to machine dependant instructions?

Jun 27 '08 #5

"Juan T. Llibre" <no***********@nowhere.comwrote
Or both .cs *and* .vb , with a simple configuration in your web.config
plus the creation of a couple of subdirectories under App_Code.
Yes I did know that, but that's not really relevant for the question.
Jun 27 '08 #6

"Madhur" <sd*@df.comwrote
When you make a request, ASP.NET will compile the .cs first into IL and
then into machine language to emit the required HTML for the client
browser.
The conversion from IL to machine is implicit.
I am confused with the JIT compilation of IL to machine code. The latter
means, as I believe, that for any IL chunk of code, only the parts that are
needed are translated to machine code. So I think ASP.NET wil make a IL dll,
that would be dynamic compilation, and when it uses it, it will translate
only the used parts of the dll to machine code, according to the JIT
principle.

As far as I can remember JIT works that way in both java and .NET.
Jun 27 '08 #7
Marc wrote:
"Madhur" <sd*@df.comwrote
>When you make a request, ASP.NET will compile the .cs first into IL
and then into machine language to emit the required HTML for the
client browser.
The conversion from IL to machine is implicit.

I am confused with the JIT compilation of IL to machine code. The
latter means, as I believe, that for any IL chunk of code, only the
parts that are needed are translated to machine code. So I think
ASP.NET wil make a IL dll, that would be dynamic compilation, and
when it uses it, it will translate only the used parts of the dll to
machine code, according to the JIT principle.

As far as I can remember JIT works that way in both java and .NET.
What you have understood is correct. JIT works both in JAVA and .NET but
there intrinsic implementations are different. JIT is very transparent to
the user in
..NET Framework. So Dynamic compilation essentially means your source
compilation
to IL.

Hope this helps

Madhur
Jun 27 '08 #8

"Madhur" <sf@df.comschreef
So Dynamic compilation essentially means your source compilation
to IL.
But it has nothing to do with JIT compilation of IL code to machine code
right? That was my confusion. I was reading some stuff and about Dynamic
Compilation and I was thinking are they just meaning JIT or something
totally independant of that, something totally different.
Jun 27 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Plat | last post by:
Okay, you'll probably think me crazy for asking this. And I am, but also curious; so please humor me. :) I'm wondering if there's a way to - using dynamic (server-side) compilation - include a...
3
by: ktrvnbq02 | last post by:
Hi, We have an ASP.NET application built in Release mode via Visual Studio. All of the C# code is in the code-behind files (i.e. *.aspx.cs files) and there is no C# in the *.aspx files...
1
by: J.A. | last post by:
Hi, I'm trying to use the CSharpCompilerProvider to dynamically compile some code. The test console app works fine but I get this error when using the same code in an ASP.NET app: error CS1619:...
1
by: davidw | last post by:
I found it seems there is a way to create a class with dynamic properties, I don't really need define each property? In ASP.NET, Profile is created with all profile items in web.config as its...
24
by: Ken | last post by:
In C programming, I want to know in what situations we should use static memory allocation instead of dynamic memory allocation. My understanding is that static memory allocation like using array...
0
by: Giulio Petrucci | last post by:
Hi there, I need to use dynamic C# (but also JScript and maybe VB.NET) code compiling in the project I'm currently working on. Making some performance tests I noticed that if I compiler 10 times...
5
by: Guillermo Schwarz | last post by:
C++ers, I have programmed in C++ since 1991 and I probably created my best abstraction layers in C++ in those days. Since 2001 I've been programming in Java (at first against my will, then I...
7
by: Ajinkya | last post by:
I have writen a program for a game called game.exe Now it includes a player part to which has to be a function to be writen by someone else. Now I want to provide this exe to some tester who...
4
by: mbrunell | last post by:
Hi, Under AIX, I have created a script which is checking URL status. Problems come when I want to check HTTPS URL status... To have my script working with HTTPS URLs, I must set the LIBPATH...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.