Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Steps Involved in transforming the code to MSIL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravi - 29 Jan 2007 05:56 GMT
Hi All
  i am new to this group, i would like to know the steps that CLR takes to
convert the code to MSIL.

Thanks
--
ravib
Manish Bafna - 29 Jan 2007 06:28 GMT
Hi,
When you write code in any language and compile, it will be converted to an
'Intermediate Language' (Microsoft Intermediate Language - MSIL). So, your
compiled executable contains the IL and not really executable machine
language. When the .NET application runs, the .NET framework in the target
computer take care of the execution. (To run a .NET application, the target
computer should have .NET framework installed.) The .NET framework converts
the calls to .NET class libraries to the corresponding APIs of the Operating
system.

Whether you write code in C# or VB.NET, you are calling methods in the same
.NET class libraries. The same .NET framework executes the C# and VB.NET
applications. So, there won't be any performance difference based on the
language you write code.

Hope this answers your  question.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.

> Hi All
>    i am new to this group, i would like to know the steps that CLR takes to
[quoted text clipped - 3 lines]
>  --
> ravib
Bob Powell [MVP] - 29 Jan 2007 11:15 GMT
Conversion to IL is a simple compilation task performed by one of the
built-in C# of VB compilers. MSIL is effectively a pseudo-instruction
set for a virtual machine. This language describes every logical
operation required to execute a specific algorithm, like assembler, but
this code is never run, even on a "virtual machine"

Instead, the code is compiled to native assembly code just before
execution.

If you're interested in looking at IL I recommend using Reflector
because you can compare between the IL and the various languages that
are compiled to it.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hi All
>    i am new to this group, i would like to know the steps that CLR takes to
[quoted text clipped - 3 lines]
>  --
> ravib
Ravi - 29 Jan 2007 12:06 GMT
Thanks for the answers. However i would like to know in detail step by step
involved by CLR to convert the code to MSIL.
Signature

ravib

> Conversion to IL is a simple compilation task performed by one of the
> built-in C# of VB compilers. MSIL is effectively a pseudo-instruction
[quoted text clipped - 16 lines]
> >  --
> > ravib
Bob Powell [MVP] - 29 Jan 2007 20:01 GMT
The point you're missing is that the CLR doesn't convert code to MSIL.

The CLR loads, verifies, JIT compiles MSIL and runs native code in a
particular app-domain.

The compilers csc.exe and vbc.exe compile source files to msil.

Reflection.Emit can create assemblies and run them dynamically. This
runs on top of the CLR as does any other application.

Source code in codebehind files is compiled on-demand by the ASP.NET
runtime during server requests. This also runs on top of the CLR as an
application.

Instead of just repeating your incorrect assumption, why not explain
exactly what it is you're unclear about and we'll try to answer in the
right way.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Thanks for the answers. However i would like to know in detail step by step
> involved by CLR to convert the code to MSIL.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.